MBACalc

Capital Gains Tax Guide

Free guide + calculator. No signup required.

Try the calculator →

Capital gains tax can take 0%, 15%, 20%, or even 37%+ of investment profits — depending on holding period, income bracket, and which strategies you use. Understanding the tax math before selling is one of the highest-leverage moves in personal finance.

Short-term vs long-term capital gains

Short-term (held ≤ 1 year)Long-term (held > 1 year)
Tax rateOrdinary income rates (10-37%)0%, 15%, or 20%
Single 2026 bracketsSame as wage income0% under $48,350; 15% to $533,400; 20% above
MFJ 2026 bracketsSame as wage income0% under $96,700; 15% to $600,050; 20% above

The 0% capital gains bracket

This is one of the most underused tax breaks in the US tax code. If your taxable income is below $48,350 (single) or $96,700 (MFJ) in 2026, your long-term capital gains are taxed at 0%.

Strategy: in low-income years (sabbatical, job change, early retirement), realize gains while in the 0% bracket. Effectively a free step-up in cost basis.

Tax-loss harvesting

If you have stocks/ETFs/funds with unrealized losses, you can sell to realize the loss, deduct it against capital gains, and reinvest in similar (not identical) securities to maintain market exposure:

Primary residence exclusion ($250K / $500K)

If you sell your primary residence at a gain, you can exclude up to $250,000 ($500,000 MFJ) of gain from capital gains tax IF:

If gain exceeds the exclusion, the excess is long-term capital gain.

Section 1031 like-kind exchange (real estate only)

For investment real estate (NOT primary residence), you can defer capital gains tax indefinitely by exchanging into another like-kind property:

More free tools

MBACalc has free calculators and guides for every major financial decision. No paywalls on the calculators themselves.

Browse all →

Frequently Asked Questions

What is the capital gains tax rate for 2026?
Long-term: 0% (income under $48,350 single / $96,700 MFJ), 15% (most middle/upper-middle), 20% (income over $533,400 single / $600,050 MFJ). Add 3.8% NIIT for income over $200K single / $250K MFJ. Short-term: same as ordinary income (10-37%).
Do I pay state capital gains tax?
Most states tax capital gains as ordinary income. 9 states have NO state income tax (and therefore no state capital gains): AK, FL, NV, NH, SD, TN, TX, WA, WY. California taxes at full state rate (up to 13.3%).
Can I avoid capital gains by holding forever?
In a sense — until you sell, no tax is owed. If you hold until death, your heirs receive a stepped-up basis (the cost basis becomes the value at your death), and prior gains are essentially erased. This is one reason why long-term holding compounds wealth.
What's the wash-sale rule?
If you sell a security at a loss and buy "substantially identical" security within 30 days before or after, the loss is disallowed. Common workaround: sell SPY at a loss, buy IVV (different fund tracking same S&P 500 index) — different ticker, similar exposure, not "substantially identical."
Are crypto gains capital gains?
Yes — for federal tax purposes, the IRS treats cryptocurrency as property. Same long-term/short-term rules. Each trade is a taxable event. Wash-sale rule does NOT currently apply to crypto (loophole some traders use), though there's pending legislation to extend it.

Educational only — not legal, financial, or tax advice. Tax law and rates change. Consult a CPA or financial advisor for your specific situation.