Display Currency:
Market FX
Live Rate:1 USD = €0.8924 · £0.7447 · ₹93.93

Capital Gains Tax Calculator (US)

Calculate your US federal capital gains tax on stocks, crypto, real estate, or collectibles. Automatically determines short-term vs long-term holding periods (> 365 days), stacks gains across the 0% / 15% / 20% 2025 IRS brackets, adds the 3.8% Net Investment Income Tax (NIIT), and models the $3,000 annual capital loss deduction.

Calculate Capital Gains Tax Calculator (US)

Enter your values below to calculate the exact result and step-by-step breakdown.

Statutory Data Source: Internal Revenue Service (IRS) (IRS Rev. Proc. 2024-40 & Topic No. 409 / Publication 550 (Capital Gains and Losses))
USD ($) · 1 USD = $1.00
Last updated: 2025-02-15Official Schedule
Looking for India LTCG / STCG (Sec 112A / 111A)?
US Asset & Holding Parameters
$0$250k$500k
$0$250k$500k
$0$300k$600k
Net Capital Gain
$54,500
After $500 fees
Total Capital Gains Tax
$8,175
Effective: 15.0%
Net Cash Proceeds
$86,325
Sale minus fees & tax
Holding Period
Long-Term
828 days (> 365 days)

2025 IRS Capital Gains Bracket Stacking & 3.8% NIIT Breakdown

Tax LayerGain Subject to RateStatutory RateTax Liability
Long-Term Bracket (15%)$54,50015.0%$8,175
Net Investment Income Tax (NIIT — IRC § 1411 above $200k/$250k MAGI)$03.8%$0
Last updated: November 13, 2026Data/tax year: 2025 US Tax Year (IRS Rev. Proc. 2024-40 & IRC § 1(h) / § 1411)

Disclaimer: Estimate only, not tax, payroll, or legal advice. Statutory tax brackets, standard deductions, and social insurance thresholds follow published government schedules; personal tax liability depends on your full return.

Entering Gross Pay, Filing Status & Pre-Tax Deductions

  1. 1Select your asset class (Stocks/Crypto, Real Estate, or Collectibles) and filing status.
  2. 2Enter your original purchase price, gross sale price, and any broker or closing fees.
  3. 3Pick your purchase and sale dates to verify whether your holding exceeds 365 days.
  4. 4Enter your other taxable income to see how your gain stacks across the 0%, 15%, and 20% brackets.

How Progressive Tax Brackets & Payroll Withholdings Actually Work

Computes exact calendar days between purchase date and sale date (> 365 days = Long-Term). Stacks Long-Term Capital Gains on top of ordinary taxable income across 2025 IRS thresholds ($48,350 / $533,400 Single; $96,700 / $600,050 MFJ). Applies 3.8% Net Investment Income Tax (NIIT) on investment income above $200k Single / $250k MFJ.

Gain = Sale − Fees − Cost ; Tax = Tax_{LTCG/STCG}(Ordinary + Gain) + 0.038 × min(Gain, max(0, MAGI − Threshold_{NIIT}))

Section 121 primary residence exclusion ($250k Single / $500k MFJ) and Section 1250 depreciation recapture are not automatically deducted.

Statutory Capital Gains Tax Calculator (US) Formula & Bracket Logic

Long-term capital gains (assets held more than 1 year) sit on top of your ordinary taxable income and are taxed progressively across the 0%, 15%, and 20% brackets (Rev. Proc. 2024-40), plus 3.8% NIIT above $200,000 Single / $250,000 MFJ.

Gain = Sale − Fees − Cost ; Tax = Tax_{LTCG/STCG}(Ordinary + Gain) + 0.038 × min(Gain, max(0, MAGI − Threshold_{NIIT}))

Paystub & Tax Return Walkthrough

Single filer with $85,000 taxable ordinary income sells shares bought in May 2023 for $40,000 at $95,000 in August 2025 ($500 fees).

Net Realized Gain = $95,000 − $500 − $40,000 = $54,500.
Because $85,000 ordinary income exceeds the 2025 Single 0% LTCG ceiling ($48,350), the entire $54,500 gain falls inside the 15% LTCG bracket (up to $533,400).
Base LTCG Tax = $54,500 × 15% = $8,175. Total MAGI ($139,500) is below the $200,000 Single NIIT threshold, so NIIT = $0.
Payroll & Tax Calculation Note · The Marginal Tax Bracket Myth

Getting a raise into a higher tax bracket never lowers your take-home pay

One of the most stubborn workplace myths is that a pay raise or bonus can "push you into a higher tax bracket and make you take home less money." Progressive tax systems (US IRS, UK HMRC, Canada CRA, India Income Tax) work like water filling a series of buckets. Only the dollars sitting above the new bracket threshold are taxed at the higher rate; every dollar below that line stays taxed at the lower rates.

Common Pitfall: Confusing bi-weekly (26 paychecks) with semi-monthly (24 paychecks)

Being paid every two weeks (bi-weekly) produces 26 paychecks in a 52-week year—meaning two months each year deliver three paychecks. Semi-monthly (1st and 15th) produces 24 slightly larger checks.

Calculation Note: Pre-tax retirement contributions save tax at your top marginal rate

Every $1,000 directed into a pre-tax 401(k), traditional pension, or HSA comes off the very top of your taxable income—saving you your highest marginal federal + state rate immediately.

Marginal Bracket Rate vs. Effective Tax Rate on Your Paycheck

Holding the shares for more than 365 days saved over $4,000 compared to short-term ordinary tax rates (22%–24%). In our worked benchmark ( $54,500 Long-Term Stock Gain Stacked on $85,000 Ordinary Taxable Income), the calculation produces $8,175 Total Capital Gains Tax (15.0% Effective Rate) | $86,325 Net Proceeds. You can customize every input above to match your exact numbers.

Standard Pay Frequency & Work-Hour Conversion Multipliers

How payroll systems translate a $100,000 annual salary across standard pay cadences (assuming 40 hrs/week, 52 weeks/year = 2,080 hours).

Pay FrequencyPaychecks / YearGross Per Paycheck ($100k/yr)Hours Covered Per Check
Hourly (Full-Time Base)2,080 Hours / Yr$48.08 / hr1.0 billable hour
Weekly Payroll52 Checks / Yr$1,923.0840.0 hours
Bi-Weekly (Every 2 Weeks)26 Checks / Yr$3,846.1580.0 hours
Semi-Monthly (1st & 15th)24 Checks / Yr$4,166.6786.67 hours avg
Monthly Payroll12 Checks / Yr$8,333.33173.33 hours avg

Payroll, Withholding & Tax Filing Questions

View All Finance Tools
How long do I have to hold an asset to qualify for long-term capital gains tax in the US?
Under IRS rules, you must hold the asset for MORE than one year (at least 366 days, or 1 year plus 1 day). If you sell on the exact 1-year anniversary (365 days), the gain is taxed as a short-term capital gain at your ordinary income tax rate.
How does the $3,000 capital loss limit work?
Capital losses first offset your capital gains dollar-for-dollar with no limit. If your total capital losses exceed your total capital gains for the year, you can deduct up to $3,000 ($1,500 if Married Filing Separately) against ordinary income like W-2 wages, and carry forward any remaining loss to future years.
What formula does the Capital Gains Tax Calculator use?
The calculation uses Gain = Sale − Fees − Cost ; Tax = Tax_{LTCG/STCG}(Ordinary + Gain) + 0.038 × min(Gain, max(0, MAGI − Threshold_{NIIT})). For example (Single filer with $85,000 taxable ordinary income sells shares bought in May 2023 for $40,000 at $95,000 in August 2025 ($500 fees).): Net Realized Gain = $95,000 − $500 − $40,000 = $54,500.
Pre-tax retirement contributions save tax at your top marginal rate?
Every $1,000 directed into a pre-tax 401(k), traditional pension, or HSA comes off the very top of your taxable income—saving you your highest marginal federal + state rate immediately.
What are common benchmark figures for Capital Gains Tax Calculator?
Standard verified values include Hourly (Full-Time Base): 2,080 Hours / Yr ($48.08 / hr); Weekly Payroll: 52 Checks / Yr ($1,923.08); Bi-Weekly (Every 2 Weeks): 26 Checks / Yr ($3,846.15).
Formulas and constants reference published standards (see Methodology).