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
What this capital gains tax calculator is showing you
This Capital Gains Tax Calculator is designed to provide clear, reliable financial mathematics to assist in personal money management and scenario planning.
The tool focuses on transparent formulas, actionable outputs, and practical planning insights to support informed financial decision-making.
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)
The primary value establishes the baseline magnitude for the entire calculation model.
Selling price
The rate or percentage factor determines how the baseline value expands, discounts, or incurs expense over the modeled period.
Holding period
The timeframe or secondary parameter provides essential context, defining the duration or conditions under which the math operates.
How to interpret your results
Use the calculation output as an objective decision-making checkpoint. Test multiple input scenarios to observe which variables exert the strongest influence on the final result.
Complement numerical outputs with comprehensive financial planning principles before executing binding commitments.
- ✓ Test both conservative and optimistic scenarios to understand the full sensitivity range of your financial plan.
- ✓ Verify critical calculations against official institutional documentation and qualified professional counsel.
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.
General Financial Calculation Considerations
This calculator provides educational estimates designed for preliminary planning and scenario analysis. Financial outcomes in practice are influenced by individual contractual terms, institutional fees, tax obligations, and market changes.
Verify all critical financial calculations with licensed advisers, institutional documentation, and qualified legal or tax professionals before executing binding agreements.
Key Factors to Review:
- • Calculations are mathematical models based on user-supplied variables.
- • Real-world results may vary due to fees, taxes, and contractual specifics.
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.