Loading CalcVerseAI...
Calculate federal capital gains tax for 2024 โ short-term vs long-term rates, tax owed, and net proceeds.
Quick Scenarios
Fill in purchase price, sale price, dates, and income to calculate your capital gains tax.
Instant Results
Accurate answers in milliseconds, no waiting
Visual Breakdown
Charts and tables for better understanding
Smart Insights
Actionable tips based on your specific numbers
100% Free
No signup, no limits, no credit card required
Instant
Results in milliseconds
100% Free
No signup, no credit check, unlimited calculations
Fill In Your Details
Enter your numbers in the input panel on the left
Get Instant Results
Click Calculate to see your full breakdown immediately
Explore & Optimize
Adjust inputs to compare scenarios and find the best outcome
CalcVerseAI โ Free Capital Gains Tax Calculator
Disclaimer: Tax estimates are based on current IRS brackets and standard deductions. Actual tax liability may differ based on individual circumstances. Consult a tax professional for personalized guidance.
Capital gains tax is calculated on the profit from selling a capital asset. The rate depends on how long you held the asset: short-term (1 year or less) is taxed as ordinary income, while long-term (more than 1 year) gets preferential rates of 0%, 15%, or 20% based on your total taxable income.
2024 Long-Term Capital Gains Rates (Single Filer)
Capital Gain = Sale Price โ Cost Basis
Tax Owed = Capital Gain ร Applicable Rate
0%
Income โค $47,025
No federal tax
15%
$47,025 โ $518,900
Most investors
20%
> $518,900
High earners
Bought: 100 shares at $80 = $8,000 | Sold: 100 shares at $130 = $13,000 | Held: 14 months | Income: $75,000
Capital gain = $13,000 โ $8,000 = $5,000 long-term gain.
Total income ($75,000 + $5,000 = $80,000) โ 15% bracket.
Tax owed = $5,000 ร 15% = $750. Net proceeds = $13,000 โ $750 = $12,250.
Long-term capital gains tax rates (2024) for single filers: 0% on gains if total taxable income is under $47,025. 15% if total income is $47,025โ$518,900. 20% if income exceeds $518,900. For married filing jointly: 0% under $94,050; 15% up to $583,750; 20% above. Short-term capital gains (assets held under 1 year) are taxed as ordinary income at your marginal federal tax rate (10%โ37%). Net Investment Income Tax (NIIT): an additional 3.8% applies to investment income for high earners ($200K single / $250K MFJ). State capital gains taxes are separate and vary by state โ California taxes all capital gains as ordinary income (up to 13.3%).
Short-term capital gain: asset sold within 1 year (365 days or less) of purchase. Taxed as ordinary income at your marginal tax bracket (10%โ37%). Long-term capital gain: asset held more than 1 year (366+ days). Taxed at the preferential 0%, 15%, or 20% rate. The difference can be enormous: a $50,000 gain in the 32% bracket costs $16,000 in short-term tax vs $7,500 in long-term tax (15% rate) โ a $8,500 savings just by holding one more day past 365. The holding period begins the day after purchase and ends on the day of sale. Inherited assets receive a "stepped-up basis" and are treated as long-term regardless of the decedent's holding period.
Capital gains arise from selling capital assets at a profit. Common examples: Stocks and bonds, mutual funds, ETFs. Real estate (see special rules below). Cryptocurrency โ the IRS treats crypto as property; each sale is a taxable event. Collectibles (art, coins, wine) โ taxed at maximum 28% long-term rate (different from stock rates). Business assets. NOT capital gains: Wages, salary, interest income, dividends from ordinary dividends (qualified dividends get preferential rates). Capital losses: selling at a loss creates a capital loss, which can offset capital gains dollar-for-dollar. Net capital losses up to $3,000/year can deduct against ordinary income; excess losses carry forward to future years.
Home sale exclusion (Section 121): if you owned and lived in the home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of gain ($500,000 if married filing jointly) from federal tax. Example: bought for $300,000, sold for $600,000 โ $300,000 gain. If you're single and meet the 2-of-5-year test, you exclude $250,000 and only $50,000 is taxable. You can use this exclusion repeatedly (generally once every 2 years). If you don't qualify: the full gain is taxable at long-term capital gains rates (assuming held 1+ year). Basis includes purchase price + improvements (keep receipts) + purchase/sale costs.
Tax-loss harvesting is selling investments at a loss to offset capital gains and reduce your tax bill. Example: you have $20,000 in gains from stock A. You also hold stock B at a $15,000 unrealized loss. Selling stock B crystallizes the $15,000 loss, reducing net taxable gains to $5,000. Rules: Wash-sale rule โ you cannot repurchase the same or "substantially identical" security within 30 days before or after the sale (the loss is disallowed). You can immediately buy a similar (not identical) ETF to maintain market exposure. Net capital losses offset capital gains first, then up to $3,000 of ordinary income per year. Unused losses carry forward indefinitely. Robo-advisors like Betterment and Wealthfront automate daily tax-loss harvesting.
The IRS classifies cryptocurrency as property, not currency. Every sale, trade, or exchange of crypto is a taxable event: Sale for fiat (USD): capital gain/loss = proceeds โ cost basis. Crypto-to-crypto trade: taxable event โ you realize the gain on the crypto you sold. Crypto used to buy goods/services: taxable at fair market value on the date of transaction. Mining/staking income: taxed as ordinary income at receipt (then capital gains rules apply on later sale). Crypto received as payment: ordinary income at fair market value. Transfers between your own wallets: NOT taxable. Cost basis methods: FIFO (first-in, first-out) is the IRS default; specific identification allows strategic optimization. The IRS requires reporting all crypto transactions on Form 8949.
Cost basis is your original investment amount โ it reduces the taxable gain when you sell. For stocks: purchase price + commissions + fees = cost basis. Cost basis methods for multiple lots: FIFO (default): sells oldest shares first โ may result in higher gains if prices have risen. Specific identification: you choose which lots to sell โ most flexible, allows minimizing gains by selling highest-cost lots first. Average cost: averages across all lots โ only available for mutual funds and some ETFs with brokerages. Cost basis must be tracked across stock splits, dividends reinvested (each reinvestment creates a new lot), and corporate actions. Brokerages are required to report cost basis on Form 1099-B for assets purchased after 2011 (stocks) or 2012 (mutual funds).
Legal strategies to minimize capital gains tax: (1) Hold assets 1+ year to qualify for long-term rates (saves 10โ20% on the rate). (2) Tax-loss harvesting โ offset gains with losses in your portfolio. (3) Max out tax-advantaged accounts โ capital gains inside 401k, IRA, and Roth accounts are tax-deferred or tax-free. (4) Opportunity Zone investments โ defer and potentially reduce gains by investing in designated low-income areas (Form 8949 + Form 8997). (5) 1031 exchange for real estate โ swap one investment property for another of like kind and defer taxes indefinitely. (6) Donate appreciated assets โ donating stock directly to charity avoids capital gains tax entirely and you get a full fair market value deduction. (7) Harvest gains in low-income years โ if you fall in the 0% bracket, realize gains at zero federal tax.
Mortgage Calculator
Calculate monthly mortgage payments, total interest, and amortization schedule.
Loan Calculator
Compute monthly payments and total cost for any personal or auto loan.
Investment Calculator
Project investment growth with compound returns over time.
Salary Calculator
Convert between hourly, weekly, monthly, and annual salary figures.
Sales Tax Calculator
Calculate sales tax and final price for any US state or custom rate.
Compound Interest Calculator
See how compound interest grows savings or investments over time.