What is Cost Basis?
Cost basis is what you originally paid for an asset, plus certain add-on costs. It's the number you subtract from the sale price to figure your gain or loss.
How it works
For stock it's the purchase price plus commissions; for a home it's the price plus improvements. Reinvested dividends add to basis too. Get basis right and you don't overpay tax on money that was never really profit.
A quick example
What people get wrong
Track improvements and reinvested dividends for years, not just the purchase price. Forgetting them is one of the most common ways people accidentally overpay capital-gains tax.