Capital Gains Tax Calculator
This calculator estimates the taxable capital gain and the estimated tax owed when you sell an asset. It supports both aggregated-basis calculations and specific-identification basis when you select particular purchase lots.
Use the fields to input sale proceeds, basis, holding period, and the tax rates that apply to you. For primary residence sales, you may apply a one-time exclusion up to the amount you enter.
Compute gain using total acquisition cost plus improvements as the basis. Applies primary residence exclusion if selected and distinguishes short-term vs long-term rates by holding period.
Inputs
Advanced inputs
Specific identification inputs
Results
Taxable capital gain
$5,000.00
Estimated tax owed
$750.00
Applicable tax rate
15.00%
Effective tax rate
15.00%
Net proceeds after tax
$9,250.00
| Output | Value | Unit |
|---|---|---|
| Taxable capital gain | $5,000.00 | USD |
| Estimated tax owed | $750.00 | USD |
| Applicable tax rate | 15.00% | — |
| Effective tax rate | 15.00% | — |
| Net proceeds after tax | $9,250.00 | USD |
Visualization
Methodology
The tool computes gross gain as sale proceeds minus adjusted basis. Adjusted basis includes acquisition cost plus capital improvements and may use an identified basis when you select specific-identification.
If you indicate a primary residence and enter an exclusion amount, the calculator subtracts up to that exclusion from the gross gain before applying carried-forward capital losses.
Short-term gains (holding period less than one year) are taxed at your ordinary income rate input; long-term gains use the long-term rate input. The estimated tax owed equals taxable gain multiplied by the selected rate.
Worked examples
Example: You sell 1 unit for $10,000 with an acquisition cost of $5,000 and $0 improvements. Selling expenses are $200 and you held the asset 2 years. Long-term rate 15%. Gross gain = $10,000 − $5,000 = $5,000. Taxable gain = $5,000. Tax owed = $750.
Example (primary residence): If the asset is a primary residence and you qualify for a $250,000 exclusion, and the gross gain is less than $250,000, the taxable gain will be reduced to zero.
Further resources
Expert Q&A
Can this calculator determine the correct IRS tax bracket for my ordinary income?
No. This tool requires you to enter the ordinary income tax rate and long-term capital gains rate that apply to you. For exact marginal bracket calculations and filing guidance, consult your tax professional or the official tax authority guidance.
Does the calculator handle multiple lots with different acquisition dates and prices?
You can use the specific-identification method to enter the exact identified basis for the lot(s) you sold. For many lots, aggregate the identified basis manually and enter it as a single identified basis.
How accurate are the estimates?
Estimates are mathematical approximations based on your inputs and do not substitute for professional tax advice. They do not account for alternative minimum tax, state taxes, surtaxes, depreciation recapture, or other jurisdiction-specific rules.
What should I do if my situation is complex (e.g., depreciated property, trade or business assets)?
Complex situations may require additional calculations (such as depreciation recapture and section-specific rules). Consult a tax professional or authoritative guidance from your tax authority for those scenarios.
How should I use the primary residence exclusion fields?
Enter 'Yes' if you meet the specific ownership and use tests that permit a primary residence exclusion in your jurisdiction and enter the exclusion amount you expect to claim. The calculator will cap the exclusion at the lesser of the exclusion amount and the gross gain.
Sources & citations
- IRS - Topic No. 409: Capital gains and losses — https://www.irs.gov/taxtopics/tc409
- NIST (standards and best practices) — https://www.nist.gov
- ISO - Standards overview — https://www.iso.org/standards.html
- IEEE - Standards and publications — https://www.ieee.org
- OSHA - Occupational safety and health standards — https://www.osha.gov