\n\n

Capital Gains Calculator

How to Use This Calculator

Enter your purchase price, sale price, and holding period. Select your income tax bracket. Click Calculate to see your total gain, short-term or long-term tax, and net after-tax profit.

$0
Total Gain
$0
Tax Owed
-
Tax Type
$0
After-Tax Profit

How to Understand Your Results

Key Output — This is the primary number the calculator returns. It represents the answer to the question you asked, calculated using standard financial formulas.

Breakdown Details — These supporting numbers show you how the result was reached. They help you understand what's driving the outcome and where you might adjust your inputs.

What to Look For — Pay attention to how small changes in inputs affect the outputs. The relationship between your inputs and results is where the real insight lives — that's what helps you make better decisions.

Every calculation uses standard financial math — the same formulas banks, lenders, and investment platforms use. The inputs you provide determine the accuracy of the result.

Real-Life Scenarios: What Would You Do?

Scenario 1: Marcus, 34 — Selling First Investment Property

Marcus bought a small condo five years ago for $185,000 and put $30,000 into renovations. He's selling it now for $265,000, with $12,000 in selling costs. He earned $72,000 last year and is trying to figure out what he'll owe on the gain.

  • Input: Purchase price $185,000, Sale price $265,000, Selling costs $12,000, Renovation costs $30,000, Holding period 5 years, Annual income $72,000
  • Result: Long-term capital gain of $38,000, tax owed approximately $5,700
  • Key insight: Renovation costs and selling fees significantly reduce the taxable gain — many first-time sellers forget to include both.

"I was bracing for a much bigger tax bill. I didn't realize I could subtract the renovation costs and the realtor fees. It's not nothing, but it's manageable."

Takeaway: Always track purchase improvements and closing costs — they directly reduce your taxable gain.

Scenario 2: Nina and David, 41 and 43 — Selling Company Shares After a Merger

Nina and David each received 2,000 shares of a tech company through RSUs when the price was $22 per share. After a merger, the stock jumped to $78. They want to sell all shares to buy a house, but don't know how the different vesting dates and tax lots affect their liability.

  • Input: Cost basis $44,000 (2,000 shares at $22), Sale proceeds $156,000 (2,000 at $78), Holding period 14 months, Joint income $165,000, Qualified vs non-qualified RSUs
  • Result: Total gain $112,000, with some portions taxed as ordinary income and some as long-term capital gains — total tax roughly $22,800 to $28,400 depending on lot identification
  • Key insight: RSUs have two tax events: ordinary income at vesting, then capital gains at sale. Using specific identification of tax lots can shift thousands in tax liability.

"We thought we'd just pay capital gains on the whole thing. Turns out how we say we acquired the shares changes the number. We're holding some lots for a few more months to get the lower rate."

Takeaway: With RSUs and ESPP shares, the holding period starts after vesting — mixing short- and long-term lots can complicate your tax picture.

Scenario 3: Elaine, 62 — Offsetting a Huge Gain with Capital Losses

Elaine sold a rental property she'd owned for 18 years, netting a $210,000 gain. She also held $68,000 of a biotech stock that became worthless this year when the company folded. She's wondering if she can use the loss to reduce her tax bill on the property sale.

  • Input: Long-term property gain $210,000, Worthless stock loss $68,000, Annual income $95,000, No other capital transactions, Marginal tax rate 22%
  • Result: Net capital gain of $142,000 after applying the loss, tax savings from the loss of approximately $14,960
  • Key insight: A worthless stock can be treated as a capital loss in the year it becomes worthless — and it can offset unlimited capital gains, with only $3,000 of excess per year against ordinary income.

"I was going to write off the biotech as a total loss and just eat it. I had no idea I could use it to cut the property tax almost in half. That's real money."

Takeaway: Don't ignore worthless assets — they can offset large gains in the same tax year, reducing your overall liability substantially.

Quick Comparison: What Changes the Outcome

See how different inputs affect the result:

Scenario Key Input Result A Result B
Marcus Renovation costs included? Tax: $5,700 (with $30k reno) Tax: $10,200 (no reno listed)
Nina & David Holding period just under 1 year Tax: $28,400 (short-term) Tax: $22,800 (long-term)
Elaine Using worthless stock loss Tax: $46,200 (no loss claimed) Tax: $31,240 (loss applied)

The biggest difference comes from whether you actively track and apply all eligible deductions — renovation costs, holding periods, and capital losses each create thousands of dollars in variance on the same base gain.

Disclaimer: All calculations and scenarios are hypothetical and for illustrative purposes only. They assume constant conditions — real-world results may vary. These calculators are educational tools, not financial advice. Consult a qualified professional before making financial decisions.

Verified Math. Every formula is cross-checked against spreadsheet calculations using standard financial math. I don't invent formulas — I use the same ones banks and investment platforms use. Learn how I test →
Your Numbers Stay Private. This calculator runs entirely in your browser. Your loan amounts, savings goals, and investment figures never leave your device — not stored, not tracked, not seen by anyone. Privacy policy →
Not Financial Advice. This tool is for educational purposes. Results are estimates based on the numbers you enter — they're not guarantees. Always consult a qualified professional before making major financial decisions.
\`n \n