Skip to content
CalcWolf › Finance › Capital Gains Tax Calculator
Finance

How Much Tax Do You Owe on Investment Gains?

Calculate capital gains tax on stocks, real estate, and other investments. Short-term vs long-term rates for 2026.

📅 Updated April 2026 ✅ Formula verified 📖 4 min read 🆓 Free · No sign-up

Short-Term vs Long-Term Capital Gains

Assets held less than 1 year are taxed as ordinary income (10-37%). Assets held 1 year or more get preferential long-term rates: 0%, 15%, or 20% depending on income. The difference can be enormous — a $50,000 gain taxed at 22% (short-term) costs $11,000, while the same gain at 15% (long-term) costs only $7,500.

Primary Residence Exclusion

If you sell your primary residence that you have lived in for 2 of the last 5 years, you can exclude up to $250,000 in gains ($500,000 for married couples). This is one of the most generous tax breaks in the code. It applies regardless of age and can be used repeatedly (every 2 years).

The 3.8% NIIT Surtax

High earners pay an additional 3.8% Net Investment Income Tax on capital gains when their MAGI exceeds $200,000 (single) or $250,000 (MFJ). This effectively creates a top long-term capital gains rate of 23.8% for high earners.

⚡ CalcWolf Insight

The "stepped-up basis" at death is one of the largest tax benefits in the code. An asset purchased for $50,000 that is worth $500,000 at death passes to heirs with a $500,000 basis — the $450,000 gain is never taxed.

Frequently asked questions
How do I reduce capital gains tax?▾
Hold assets for over 1 year (long-term rates). Tax-loss harvest to offset gains. Use the primary residence exclusion. Donate appreciated assets to charity (avoid gains entirely). Invest through tax-advantaged accounts (401k, IRA, Roth).
Are capital gains added to my regular income?▾
Short-term gains are added to ordinary income and taxed at your marginal rate. Long-term gains are stacked on top of ordinary income for bracket determination but taxed at separate, lower rates.
Do I owe capital gains on inherited property?▾
Inherited assets receive a "stepped-up basis" to fair market value at the time of the decedent's death. You only owe capital gains on appreciation after you inherited the asset, not on the original owner's gain.
✓ Math logic verified against primary sources → See our verification process
Kevin Glover
Founder, CalcWolf · GLVTS · Blickr
All formulas sourced from primary references — IRS publications, peer-reviewed research, and official standards. Results are tested against independent reference calculators before publishing. Rates and brackets updated when official sources change. Editorial policy →

Embed This Calculator

Add this calculator to your blog or website. Copy the code below and paste it into your HTML.

<iframe src="https://calcwolf.com/embed/capital-gains-tax-calculator/" width="100%" height="420" style="border:1px solid #e5e7eb;border-radius:12px;" frameborder="0" loading="lazy" title="Capital Gains Tax Calculator"></iframe>
Size:

Free to use. The embed includes a small "Powered by CalcWolf" link. By embedding, you agree to keep this attribution visible.

🐛 Report a Calculator Error
Found a bug or outdated data? Reports go directly to Kevin and are reviewed personally.