Capital Gains: Definition, Formula & Example - AI How To Invest

The profit you make when you sell an investment for more than you paid for it.

What are capital gains?
Capital gains are the profits you earn when you sell an investment—like stocks, real estate, or crypto—for more than you initially paid. Understanding how they work is crucial for managing taxes and maximizing your returns. Here’s what I’ve learned about calculating and applying capital gains in real-world scenarios.


How to Calculate Capital Gains

The formula is straightforward:
Capital Gain = Selling Price - Purchase Price

For example, if you bought 10 shares of a stock at $50 each and sold them later for $80 per share, your capital gain would be:
$80 (selling price) - $50 (purchase price) = $30 per share
Total capital gain: 10 shares × $30 = $300

But it’s not always this simple. You also need to account for costs like transaction fees or improvements (for real estate). If you paid $100 in fees when buying and selling, your net capital gain drops to $200. Always factor in these expenses to avoid overestimating your profit.


Short-Term vs. Long-Term Capital Gains

The duration you hold an investment affects how your gains are taxed.

  • Short-term gains: Assets held for less than a year are taxed as ordinary income. For example, if you’re in the 24% tax bracket and make $1,000 in short-term gains, you’ll owe $240 in taxes.
  • Long-term gains: Assets held for over a year qualify for lower tax rates—0%, 15%, or 20%, depending on your income. If you’re in the 15% bracket and make $1,000 in long-term gains, you’ll owe just $150.

This distinction can significantly impact your net returns. For instance, selling a stock after 11 months could cost you $240, while waiting just one more month reduces your tax bill to $150—saving you $90.


Real-Life Example: Investing in Bitcoin

Let’s say you bought 1 Bitcoin for $20,000 in January 2022 and sold it for $30,000 in February 2023. Here’s how the math breaks down:

  1. Calculate the gain:
    $30,000 (selling price) - $20,000 (purchase price) = $10,000

  2. Determine the tax rate:
    Since you held Bitcoin for over a year, it qualifies as a long-term gain. If you’re in the 15% tax bracket, you’ll owe $1,500 in taxes.

  3. Net profit:
    $10,000 (gain) - $1,500 (tax) = $8,500

This example shows how holding investments longer can reduce your tax burden and increase your take-home profit.


Understanding capital gains is essential for making informed investment decisions. Whether you’re trading stocks, flipping houses, or hodling crypto, knowing how to calculate and optimize your gains can save you money and boost your returns.

Full breakdown: https://aihowtoinvest.com/glossary/capital-gains


Write a comment