NetWorthFlow

Investing & Markets

What is Capital Gain?

A capital gain is the profit realized from the sale of a capital asset, such as corporate stocks, bonds, mutual funds, real estate, or collectibles, for a price higher than its original purchase price (known as its cost basis). The increase in an asset's market value is classified as an 'unrealized' or 'paper' gain as long as the investor continues to hold the asset. It is only when the asset is sold that the gain becomes 'realized,' which triggers a taxable event under United States tax laws.

To calculate tax liability, the IRS categorizes realized capital gains based on the holding period. Short-term capital gains apply to assets owned for one year or less before sale and are taxed at the investor's standard federal ordinary income tax rates, which range from 10% to 37%. Conversely, long-term capital gains apply to assets held for more than one year and benefit from preferential tax rates of 0%, 15%, or 20%, depending on the investor's overall taxable income. High earners may also be subject to an additional 3.8% <a href="/articles/high-income-fica-additional-medicare-niit-math" class="text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 hover:underline font-semibold transition-colors duration-200">Net Investment Income Tax</a> (NIIT) on their investment returns.

Importantly, capital gains can be offset by capital losses (selling assets for less than their cost basis) through a process called tax-loss harvesting. In any given tax year, if capital losses exceed capital gains, investors can use the net loss to offset up to $3,000 of ordinary income ($1,500 if married filing separately), carrying forward any remaining losses to future tax years. This makes strategic capital gains management a critical component of personal investment planning.

At a Glance

Tax TriggerTriggered upon the realized sale of the asset for a profit
Short-Term HoldingOne year or less, taxed at ordinary income rates
Long-Term HoldingMore than one year, taxed at preferential rates (0%/15%/20%)
Loss OffsetsAllows up to $3,000 in excess capital losses to offset ordinary income

PRACTICAL EXAMPLE

An investor purchases shares of stock for $5,000. After holding them for 18 months, they sell the shares for $8,005. The investor realizes a $3,005 long-term capital gain, which is subject to a 15% tax rate ($451) for most income brackets.

Related Calculators
Related Guides
Related Terms

Official References

Last reviewed: June 26, 2026

Editorial & Financial Disclaimer

NetWorthFlow provides financial calculators, simulators, and projection tools for informational and educational purposes only. None of the calculations, data, or results displayed on this website constitute professional financial, investment, tax, or legal advice. All calculations are mathematical models based on user-supplied variables and general assumptions, which may not reflect real-world market outcomes.

Automated tools are not a substitute for professional counsel. We strongly advise that you consult a qualified Certified Financial Planner (CFP®), Registered Investment Adviser (RIA), Certified Public Accountant (CPA), or legal expert before making significant decisions regarding taxes, mortgages, retirement planning, investments, or debt management. Read full disclaimer →