Capital Gains Tax Calculator (USA)
Calculate capital gains tax based on purchase price, selling price, and applicable tax rates.
How to Calculate Capital Gains Tax
The formula for capital gains tax is:
- Formula: Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate
- Key Components: Selling Price, Purchase Price, Tax Rate
- US Federal Standard: Short-term (≤1 year): Ordinary income tax rates, Long-term (>1 year): 0%, 15%, or 20%
Calculator : Capital Gains Tax
Visual Breakdown
Investment Return Distribution
Capital Gain Details
Tax Rate Comparison
Analysis & Recommendations
Your capital gain of $5,000.00 resulted in $750.00 in taxes.
- Consider holding assets for more than 1 year to qualify for lower long-term rates
- Harvest losses to offset gains and reduce tax liability
- Time sales strategically to manage tax impact
- Consult a tax professional for complex situations
Understanding Capital Gains Tax
Capital gains tax is a tax on the profit realized from the sale of a capital asset, such as stocks, real estate, or collectibles. The formula Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate determines the tax owed on the gain.
The formula used is: Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate
Where the tax rate depends on the holding period and taxpayer's income level.
-
Short-term gains (≤1 year) taxed at ordinary income rates
-
Long-term gains (>1 year) taxed at preferential rates (0%, 15%, or 20%)
-
Primary residence exclusion up to $250,000/$500,000
-
Capital losses can offset capital gains plus $3,000 of ordinary income
Knowledge Check
If you bought a stock for $5,000 and sold it for $7,000, with a tax rate of 15%, what is the capital gains tax?
Using the formula: Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate
Step 1: Capital Gain = $7,000 - $5,000 = $2,000
Step 2: Capital Gains Tax = $2,000 × 0.15 = $300
Answer: $300 capital gains tax
This question tests understanding of the core formula components and order of operations.
What is the maximum long-term capital gains tax rate for most taxpayers?
C) 20%
The maximum long-term capital gains tax rate is 20% for most taxpayers. The rates are 0%, 15%, or 20% depending on income level.
How long must you hold an asset to qualify for long-term capital gains treatment?
You must hold an asset for more than one year (more than 365 days) to qualify for long-term capital gains treatment.
Assets held for one year or less are subject to short-term capital gains rates, which are equivalent to ordinary income tax rates.
The holding period significantly affects the tax rate applied to capital gains, making timing important for tax planning.
If you purchased a property for $200,000 and sold it for $300,000 after holding it for 3 years, with a tax rate of 15%, what is the tax on the gain?
Step 1: Capital Gain = $300,000 - $200,000 = $100,000
Step 2: Capital Gains Tax = $100,000 × 0.15 = $15,000
Answer: $15,000 in capital gains tax
Remember to consider improvements and selling expenses that can adjust your cost basis and reduce the taxable gain.
How much in capital losses can be used to offset ordinary income per year?
Up to $3,000 in capital losses can be used to offset ordinary income per year. Any excess losses can be carried forward to future years.
This is important for tax planning as losses can offset gains and reduce overall tax liability.
Consider "tax-loss harvesting" - selling losing investments to offset gains from winning investments, then repurchasing the losers after 30 days to maintain portfolio allocation.
Q&A
Q: How do I calculate the cost basis if I received stock as a gift?
A: The cost basis for gifted stock depends on whether you sell it at a gain or loss. The formula Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate still applies, but "Purchase Price" (cost basis) is calculated differently:
Gift Cost Basis Rules:
- For Gains: Use donor's original cost basis
- For Losses: Use the lower of donor's cost basis or fair market value at time of gift
- Hold Date: Use donor's original purchase date for holding period
Example: If donor bought stock for $1,000, it was worth $1,500 when gifted to you, and you sell for $2,000, your gain is $2,000 - $1,000 = $1,000 (using donor's basis since you sold at a gain).
Q: Do improvements to a property affect the capital gains calculation?
A: Yes, improvements increase your cost basis, which reduces the taxable gain. Using the formula Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate:
Adjusted Cost Basis:
- Original Purchase Price
- + Improvements (kitchen remodels, additions, etc.)
- - Depreciation Taken (for rental properties)
- = Adjusted Cost Basis
Example: If you bought a house for $200,000, spent $50,000 on improvements, and sold for $350,000:
- Adjusted Basis: $200,000 + $50,000 = $250,000
- Gain: $350,000 - $250,000 = $100,000
- Tax: $100,000 × Tax Rate
This is why keeping detailed records of improvements is crucial for minimizing taxes.
Q: What happens if I have more capital losses than gains in a year?
A: If your capital losses exceed your capital gains, you can use up to $3,000 to offset ordinary income. The remaining losses can be carried forward to future tax years. The formula Capital Gains Tax = (Selling Price - Purchase Price) × Tax Rate still applies to each transaction:
Loss Carryforward Process:
- Year 1: $10,000 losses - $5,000 gains = $5,000 net loss
- Offset: Use $3,000 to offset ordinary income
- Carry Forward: $2,000 to future years
Strategic Use: This creates opportunities for "tax-loss harvesting" - intentionally realizing losses to offset gains in other years. The losses don't disappear; they just shift the timing of tax benefits.
Wash Sale Rule: Be aware that buying substantially identical securities within 30 days before or after selling at a loss disallows the loss for tax purposes.