What Inputs Does the Calculator Need?
Capital gains tax calculator inputs explained
| Input Field | What to Enter | Common Mistakes |
|---|---|---|
| Purchase price (cost basis) | Original amount paid including commissions and fees | Forgetting to include reinvested dividends for mutual funds |
| Sale price (proceeds) | Amount received minus selling commissions | Entering gross before fees |
| Date purchased | Exact purchase date for holding period determination | Rounding to the nearest month changes short vs long-term classification |
| Date sold | Exact sale date | Must be held for MORE than 12 months for long-term treatment |
| Filing status | Single, married filing jointly, etc. | Wrong filing status shifts the applicable rate |
| Taxable income (before this gain) | Your other income for the year | Determines which long-term capital gains rate bracket applies |
How the Calculator Determines Your Rate
The calculator applies two completely different tax systems depending on your holding period: short-term gains (held 12 months or less) are taxed at ordinary income rates — the same rates as your salary. Long-term gains (held more than 12 months) are taxed at preferential rates of 0%, 15%, or 20% depending on your income.
To qualify for long-term capital gains treatment, you must hold an asset for MORE than 12 months — not exactly 12. An asset purchased on January 15, 2024 must be sold on January 16, 2025 or later to qualify for long-term treatment. Selling on January 15, 2025 is exactly 12 months and is short-term. The calculator handles this automatically if you enter exact dates.
Reading the Calculator Results
- Capital gain: Sale price minus cost basis — the taxable profit
- Holding period: Short-term (<=12 months) or long-term (>12 months)
- Applicable tax rate: Ordinary rate for short-term; 0%, 15%, or 20% for long-term
- Federal tax owed: The capital gain times the applicable rate
- State tax owed: Many states tax capital gains as ordinary income — varies by state
- Net investment income tax: Additional 3.8% if your income exceeds $200K (single) or $250K (MFJ)
- Total tax: Federal + state + NIIT combined
- Net proceeds after tax: What you actually keep
What the Calculator Cannot Do
The capital gains calculator provides accurate estimates for straightforward sales. It cannot automatically account for: specific lot identification (which shares you sold if you bought in multiple lots), wash sale rule disallowances, depreciation recapture on rental property, the alternative minimum tax interaction, or state-specific capital gains preferences. Consult a tax professional for complex sales.
Calculate Your Capital Gains Tax
Enter your purchase price, sale price, dates, and income to see your exact federal and state capital gains tax.