When you buy 1,000 shares of Ford at $14 and your broker charges you a $10 commission, your cost basis is $14,010 for those shares. That transaction is given a unique tax lot ID so you and the IRS can track those shares separately from other Ford stock you might buy later.