Cost Basis
Definition
The original purchase price of an investment, used to calculate capital gains or losses when sold.
In Detail
Cost basis is the total amount you invested to acquire a security, including the purchase price and all associated costs such as trading commissions, transfer fees, and in some jurisdictions, stamp duty. It is the foundation for calculating capital gains or losses when you sell — your gain or loss is simply the sale price minus the cost basis. Accurately tracking cost basis is essential for tax reporting and for understanding the true profitability of your investments. When you purchase shares of the same asset at different times and prices, the cost basis calculation becomes more complex because you must determine which specific shares you are selling. Several accounting methods exist: FIFO (First In, First Out) assumes you sell the oldest shares first; LIFO (Last In, First Out) assumes you sell the most recently purchased shares first; average cost calculates a weighted average of all purchase prices; and specific identification lets you choose exactly which shares to sell. The method you use can significantly affect your tax liability. In the UK, share matching follows specific rules: same-day purchases are matched first, then purchases within the following 30 days (the "bed and breakfasting" rule), then the "Section 104 pool" which calculates a running average cost basis for all remaining shares. Cost basis is also adjusted by corporate actions: stock splits multiply your share count but divide the per-share cost basis proportionally, stock dividends add shares at zero cost (reducing your average), and return-of-capital distributions reduce your cost basis without creating an immediate taxable event.
How to Use in Trading
Track cost basis meticulously for every investment from the moment you purchase it. Most brokers track cost basis automatically, but verify their records — errors occur, especially with transferred positions, corporate actions, and inherited securities. When selling partial positions, understand which cost basis method your broker uses by default and whether you can change it. In taxable accounts, use cost basis strategically for tax optimisation: if you have shares purchased at different prices and want to minimise taxes, sell the highest-cost shares first (specific identification method) to minimise capital gains. If you have positions that are below your cost basis at year-end, consider tax-loss harvesting — selling the position to realise the loss, which can offset capital gains from other trades and reduce your tax bill. Be aware of wash-sale rules: if you sell a security at a loss and repurchase a "substantially identical" security within 30 days (before or after), the loss is disallowed for tax purposes and instead added to the cost basis of the new purchase. Reinvested dividends increase your cost basis because you are purchasing additional shares — failing to account for this is a common mistake that causes investors to overpay taxes by reporting lower cost basis (and therefore higher gains) than they actually have.
Example
Over 18 months, you make four purchases of a stock: 50 shares at $40 ($2,000), 30 shares at $45 ($1,350), 40 shares at $35 ($1,400), and 20 shares at $50 ($1,000). You also reinvested $200 in dividends, purchasing 5 additional shares at $40. Your total investment is $5,950 for 145 shares. Your average cost basis is $5,950 / 145 = $41.03 per share. The stock is now $55 and you want to sell 50 shares. Using FIFO, you sell your original 50 shares bought at $40 — gain of $15/share = $750. Using specific identification, you could sell the 40 shares bought at $35 and 10 of the shares bought at $40 — average cost basis of $35.71 and gain of $964. Or you could sell the 20 shares at $50 and 30 at $45 — average cost basis of $47 and gain of only $400. By choosing specific identification and selling the highest-cost shares, you minimise your immediate capital gains tax. The $564 difference in reported gains between the cheapest ($400) and most expensive ($964) methods could save you over $100 in taxes on this single transaction.
More Trading Terms
Ask Price
The lowest price a seller is willing to accept for an asset. Also called the offer price.
ATH (All-Time High)
The highest price an asset has ever reached in its trading history.
ATL (All-Time Low)
The lowest price an asset has ever reached in its trading history.
Bid Price
The highest price a buyer is willing to pay for an asset.
Breakout
When price moves above resistance or below support with increased volume, potentially signaling a new trend.
Put This Knowledge to Use
Practice crypto trading with $10,000 virtual capital. No risk, real market conditions.
Start Paper Trading Free