Capital Gains Tax Calculator (Short-Term & Long-Term)
Calculate your federal capital gains tax liability on profits from selling stocks, real estate, cryptocurrency, or other capital assets held for less than one year (short-term) or more than one year (long-term).
Enter Parameters
Adjust inputs to calculate real-time estimates
Showing an initial illustrative scenario using standard parameters. Adjust the input fields on the left and click Calculate now to evaluate your specific numbers.
Calculation Summary
Estimated capital gains tax is $2,700.00 on a realized gain of $18,000.00.
Capital gains tax owed
$2,700.00
Net profit after tax
$15,300.00
Applicable tax rate
15.00%
Long-term capital gains qualify for preferential 0%, 15%, or 20% federal rates compared to higher ordinary income tax rates.
Visual Analytics & Breakdown
Financial Distribution Diagram
Interactive circular proportion of financial allocation
What this capital gains tax calculator is showing you
Calculate your federal capital gains tax liability on profits from selling stocks, real estate, cryptocurrency, or other capital assets held for less than one year (short-term) or more than one year (long-term). Purpose-built for practical decision-making, the Capital Gains Tax Calculator provides quantitative clarity on this financial problem by transforming raw input assumptions into structured, actionable projections. Calculations incorporate United States Internal Revenue Service (IRS) tax brackets and standard statutory contribution limits for the current federal tax year.
Calculations are performed using the mathematical model Capital Gain = Sale Price - Purchase Price (Cost Basis). Short-term gains taxed at ordinary income rates (10%-37%). Long-term gains taxed at 0%, 15%, or 20% brackets based on total income.. In this computation, Purchase price (cost basis) establishes the baseline scale, while parameters such as Selling price determine the progression over time. Adjusting these values allows you to observe how incremental changes directly influence your final outcome.
Mathematical Model
Capital Gain = Sale Price - Purchase Price (Cost Basis). Short-term gains taxed at ordinary income rates (10%-37%). Long-term gains taxed at 0%, 15%, or 20% brackets based on total income.
Inputs that matter most
Understanding how each variable impacts the final calculation
Purchase price (cost basis)
Specifies this key parameter within the formula, directly affecting intermediate steps and final output figures.
Selling price
Specifies this key parameter within the formula, directly affecting intermediate steps and final output figures.
Holding period
Determines the calculation schedule, filing status, or repayment method. This selection controls which specific formula rules and statutory schedules apply.
Other annual taxable income
Specifies this key parameter within the formula, directly affecting intermediate steps and final output figures.
Filing status
Determines the calculation schedule, filing status, or repayment method. This selection controls which specific formula rules and statutory schedules apply.
How to interpret your results
Distinguish between your marginal tax bracket and your effective overall tax rate. The effective rate represents the actual percentage of gross income owed in taxes.
Identify pre-tax deductions, allowable retirement contributions, and eligible tax credits that can legally reduce taxable base income before formal filing.
- ✓ Review standard deduction versus itemized deduction thresholds to ensure you claim the optimal filing status.
- ✓ Utilize tax-advantaged accounts (such as 401(k), IRA, or HSA) to legally reduce taxable gross income where eligible.
- ✓ Consult official tax authority documentation or a qualified CPA for complex multi-jurisdiction or business tax scenarios.
Worked Example Scenario
The snapshot below illustrates a representative calculation using the standard initial parameters:
Capital gains tax owed
$2,700.00
Net profit after tax
$15,300.00
Applicable tax rate
15.00%
Long-term capital gains qualify for preferential 0%, 15%, or 20% federal rates compared to higher ordinary income tax rates.
Capital Gains Tax Calculator Assumptions & Planning Boundaries
This calculator executes deterministic mathematical models based on Capital Gain = Sale Price - Purchase Price (Cost Basis). Short-term gains taxed at ordinary income rates (10%-37%). Long-term gains taxed at 0%, 15%, or 20% brackets based on total income.. It assumes that entered parameters—such as Purchase price (cost basis) and associated rates—remain constant throughout the evaluated period without unmodeled mid-cycle adjustments.
In real-world financial environments, factors including macroeconomic interest rate shifts, localized tax regulations, loan origination fees, closing costs, and inflation variability may cause actual outcomes to differ from theoretical calculations. These figures should be utilized as an analytical planning baseline rather than a legally binding quotation.
Key Factors to Review:
- • Statutory bracket baseline: Estimates use current statutory brackets and standard deductions without personalized tax adjustments.
- • Jurisdictional variance: State, provincial, local, or municipal taxes may alter total tax liability compared to federal baselines.
- • Deduction eligibility: Individual tax positions depend on verified receipts, exemptions, and formal tax authority guidelines.
Frequently Asked Questions
What qualifies as a long-term capital gain? ▼
Any asset held for more than 365 consecutive days qualifies for preferential long-term capital gains tax rates of 0%, 15%, or 20%.
What is the 0% long-term capital gains bracket threshold? ▼
For Single filers earning up to approximately $47,025 (and Married Joint earning up to $94,050 for 2025/2026), long-term capital gains are taxed at 0% federal rate.