Also called: basis, tax basis, purchase price
Cost basis is what you paid for an investment, including fees, and it is the number used to figure your gain or loss for taxes when you sell.
Gain = sale price minus cost basis. If you buy the same stock several times, each purchase (called a lot) has its own basis, and your broker may let you choose which lots to sell: selling the highest-cost lots first can lower your tax. Reinvested dividends add to your basis, and a wash sale can shift a loss into the basis of new shares. US brokers report basis to the IRS on Form 1099-B for most shares.
You buy 10 shares at $50 plus a $5 fee: your basis is $505. You sell all 10 at $70 for $700. Your taxable gain is $700 − $505 = $195.
Related terms: Capital gains (US), Wash sale rule (US), Tax-loss harvesting, Dividend reinvestment (DRIP), Commission