PERQS

Cost Basis 101: How to Calculate It and Track It Over Time

Cost basis is the amount you originally paid for an investment or asset, and it’s one of the most important numbers to track when you buy, sell, or inherit property. Knowing your cost basis helps you calculate profits or losses, estimate potential taxes, and make smarter decisions about when (and what) to sell—especially if you own multiple “lots” of the same investment over time.

Summary

Cost basis is the amount you originally paid for an investment or asset, and it’s one of the most important numbers to track when you buy, sell, or inherit property. Knowing your cost basis helps you calculate profits or losses, estimate potential taxes, and make smarter decisions about when (and what) to sell—especially if you own multiple “lots” of the same investment over time.


💡 What cost basis is and why it matters

Cost basis is the starting point for measuring how much money you’ve made (or lost) on an asset. In most cases, it begins with the purchase price, but it can change based on things like commissions, reinvested dividends, certain fees, capital improvements, and the way assets are transferred through gifts or inheritances. When you sell an asset, the difference between your sale proceeds and your cost basis is your capital gain or capital loss—numbers that often determine whether you owe taxes, how much you owe, and whether the sale could help you offset other gains. Because investing activity can happen over many years, keeping clean records of cost basis can make tax time easier and can help you plan ahead, such as timing sales, using losses strategically, or choosing which shares to sell to manage your taxable income.

Takeaways:

• Cost basis is usually what you paid for an asset, and it’s used to calculate capital gains or losses when you sell.

• Your basis can be adjusted by fees, reinvested dividends, or improvements (like upgrades to a property).

• Accurate cost basis tracking supports smarter, more tax-aware investing decisions.

Key Terms

• Cost basis: The original amount paid for an asset, used to determine gain or loss when it’s sold.

• Capital gain: The profit you make when you sell an asset for more than your cost basis.

• Capital loss: The loss you realize when you sell an asset for less than your cost basis.


📌 When cost basis changes and what to track

Cost basis isn’t always a one-and-done number. It can shift based on how you acquire the asset and what happens after purchase. If you buy stocks, ETFs, or mutual funds in a taxable brokerage account, your basis typically starts with the price you paid per share, plus any trading commissions or transaction fees that apply. If you reinvest dividends, those new shares create new “lots” with their own cost basis based on what those shares cost at the time of reinvestment. Stock splits don’t change your total basis, but they do change the per-share basis because you own more shares while the overall dollars you invested stay the same. Inheritances can also change cost basis in a major way: assets may receive a “step-up” to their value on the original owner’s date of death, which can reduce taxable gains for the person who inherits them. Gifts work differently—when someone gives you an asset during their lifetime, your basis is generally tied to what they originally paid (with some potential adjustments). Real estate adds another twist: improvements that add value or extend life (like adding a deck or major renovation) can often be added to your basis, potentially lowering taxes when you sell.

Takeaways:

• Reinvested dividends create new purchase lots with their own cost basis.

• Stock splits keep your total basis the same but lower your per-share basis.

• Inherited assets may receive a stepped-up basis; gifted assets usually carry over the giver’s basis.

Key Terms

• Dividend reinvestment: Using dividends to buy additional shares, creating new cost basis lots.

• Stock split: An increase in shares owned that lowers per-share basis while total basis stays the same.

• Step-up in basis: A reset of cost basis on inherited assets to the value on the date of death.


🧮 How to calculate cost basis for stocks, ETFs, and mutual funds

If you buy the same investment more than once, your cost basis can depend on which shares you’re considered to have sold. That’s where cost basis methods come in—especially for stocks, ETFs, and mutual funds. Three common approaches are first in, first out (FIFO), average cost, and specific shares. FIFO assumes the oldest shares you bought are the first ones you sell, which can matter a lot if you purchased at different prices over time. The average cost method is commonly used for mutual funds and spreads your total investment cost across all shares to determine a single per-share basis. The specific shares method lets you choose which shares you’re selling, which can be powerful for tax planning—such as selling higher-cost shares to reduce a gain (or increase a loss) or selling lower-cost shares if you want to realize a larger gain. Many brokerages default to FIFO if you don’t choose a method, so it’s worth checking your account settings and understanding how your sales are being reported.

Takeaways:

• FIFO uses your earliest purchased shares first, which can change your taxable gain.

• Average cost is often used for mutual funds and calculates one blended per-share basis.

• Specific shares let you pick which lots to sell for more control over tax outcomes.

Key Terms

• FIFO: A method that assumes the first shares purchased are the first shares sold.

• Average cost method: A method that divides total cost of shares by total number of shares to get a per-share basis.

• Specific shares: A method that lets you identify exactly which lots you sell to manage gains or losses.


🧾 FIFO, average cost, and specific shares with clear examples

Examples make the differences between cost basis methods easier to see. Imagine you buy 10 shares of a stock at $100 per share, then later buy 10 more shares at $120 per share. If you sell shares, FIFO treats the earliest $100 shares as sold first, meaning your basis starts lower and your taxable gain might be higher if the stock has risen. If you sell 15 shares under FIFO, your basis would be the first 10 shares at $100 ($1,000) plus 5 shares from the second lot at $120 ($600), for a total basis of $1,600. Under the average cost method, you’d add the total cost ($2,200) and divide by total shares (20) to get $110 per share, and then use that blended number to compute gains or losses. With the specific shares method, you can intentionally choose which lots to sell—such as selecting higher-cost shares to reduce taxable gains, or to maximize a loss if you’re trying to offset other gains. In the example above, if you sold 15 shares and chose all 10 shares bought at $120 and 5 shares bought at $100, your basis would be $1,700—higher than FIFO—creating a smaller gain (or a larger loss) depending on the sale price.

Takeaways:

• Different cost basis methods can produce different taxable gains for the same sale.

• FIFO often creates lower basis first if early shares were cheaper.

• Specific shares can help you tailor sales to your tax goals, if your brokerage allows it and the lots are properly identified.

Key Terms

• Lot: A group of shares purchased at the same time and price, tracked separately for cost basis.

• Tax-loss harvesting: Selling investments at a loss to potentially offset gains (and in some cases, reduce taxable income).

• Proceeds: The amount you receive from selling an investment, used with basis to calculate gain or loss.


🏠 Cost basis for real estate, inheritances, gifts, and other common situations

Cost basis rules come up outside of stocks and funds, too—especially with real estate and family transfers. For a home or investment property, your starting basis is typically what you paid to buy it, and you can often increase that basis with capital improvements that add value or extend the property’s useful life (such as adding a deck, remodeling a kitchen, or building an addition). A higher basis can reduce the taxable gain when you sell, because your gain is generally the sale price minus your adjusted basis. Inheritances can be especially impactful: if you inherit an asset, the basis may be adjusted to the asset’s fair market value on the date of the prior owner’s death, which can significantly reduce capital gains taxes if the asset appreciated over many years. Gifts generally do not receive that reset, meaning the recipient often takes on the original owner’s basis. Because these rules can affect large sums of money, keeping documentation—purchase records, improvement receipts, and any estate paperwork—can make a big difference when it’s time to sell or report taxes.

Takeaways:

• Real estate basis typically starts with purchase price and can be increased by qualifying capital improvements.

• Inherited assets may receive a stepped-up basis, potentially shrinking taxable gains.

• Gifted assets generally carry over the giver’s basis, which may create larger gains later.

Key Terms

• Adjusted cost basis: Your original basis plus (or minus) allowed adjustments, such as improvements or certain fees.

• Capital improvement: A major upgrade that adds value or extends the life of property and can often be added to basis.

• Fair market value: The price an asset would typically sell for in an open market, often used for inherited basis calculations.


Conclusion

Cost basis is a simple concept—what you paid for an asset—but it becomes incredibly useful once you start buying in multiple lots, reinvesting dividends, improving real estate, or receiving assets through gifts or inheritance. By understanding how basis is calculated and which method applies to your investments, you can estimate taxes more accurately and make more informed decisions about when and what to sell.