Capital Gains Tax Calculator

ESTIMATOR

Estimate your potential tax liability on the sale of stocks, crypto, or real estate in the US, UK, Canada, or Australia.

Multi-RegionShort & Long Term
Asset Details
$
$
$
$

Enter details to see results.

No valid data — load a sample to preview.

Author / Editor:PenGenie Editorial Team
Review note:Check current official rules before acting
Calculation details

Private Browser-Based Financial Planning

Fast calculator execution with private inputs, clear estimates, and responsive layouts across desktop and mobile.

Browser-based processing

In-Browser Processing

Salary, tax, savings, and career planning values are processed locally wherever possible. No account or saved calculation history is required.

Immediate recalculation

Fast local recalculation

Update inputs and see planning results immediately, without waiting for signups, dashboards, or checkout flows.

Cross-Engine Support

Browser Compatibility

Works across modern desktop and mobile browsers so salary, tax, and savings calculations remain usable on any screen size.

What is a Capital Gains Tax Calculator?

This tool helps you estimate the taxes owed when you sell an asset for a profit. It differentiates between short-term trades and long-term investments to give you an accurate picture of your true net proceeds.

Who Should Use This Tool?

Investors, day traders, and homeowners looking to sell their primary residence or rental properties. If you're a freelancer managing multiple income streams, try pairing this with our quarterly tax calculator to stay ahead of the IRS.

Examples

Long-Term Stock Sale

Example Input

Bought 100 shares of Apple at $150. Sold after 2 years at $190. Married filing jointly with $100k income.

Sample Output

The $4,000 profit is taxed at the favorable 15% long-term rate, resulting in a $600 capital gains tax, netting $3,400.

Short-Term Crypto Flip

Example Input

Bought $5,000 of Bitcoin. Sold 3 months later for $8,000. Single filer with $80k income.

Sample Output

The $3,000 profit is taxed at ordinary income brackets (22%), costing $660 in taxes because it was held for less than a year.

Actionable Use Cases

Run scenarios before you hit the sell button. By waiting just a few extra weeks to hit the one-year mark on an investment, you could drop your tax rate by 10% or more. Consider checking our compound interest calculator to see what reinvesting those tax savings could yield.

How to Optimize Your Output

Always include your exact holding period and your comprehensive taxable income. Your overall income dictates your capital gains bracket. Review our US federal tax brackets guide for a deeper understanding of how these thresholds overlap.

Common Pitfalls

Many people forget to factor in state capital gains taxes, which can reduce the final result. Another mistake is ignoring the wash-sale rule when claiming losses. Compare outcomes using a tax withholding calculator to review the broader tax picture.

FAQ

What is the difference between short and long term capital gains?

Short-term gains apply to assets held for one year or less and are taxed as ordinary income. Long-term gains apply to assets held longer than a year and benefit from lower, preferential tax rates.

Do I pay capital gains on my primary residence?

In the US, you can often exclude up to $250,000 (or $500,000 if married filing jointly) of capital gains from the sale of your primary home, provided you meet certain ownership and use tests.

How can I avoid capital gains tax?

Common strategies include holding assets for over a year, utilizing tax-advantaged accounts like IRAs, tax-loss harvesting to offset gains, and investing in Opportunity Zones.

Why Use Our Tool?

Calculations run locally in your browser (compatible with modern versions of Chrome, Safari, Edge, Firefox). The tool does not connect to bank or investment accounts; review the Privacy Policy because standard site services may still make network requests.

Workflow Sequence

Recommended Next Step Workflow

Follow this 3-step planning sequence to compare the current calculator with the next useful financial or career check.

Related Calculators

People Also Calculate

Pair this calculator with related tools to compare salary, tax, savings, and career outcomes.

All Tools →
Financial Planning Guide
Pillar Documentation14 min read2,439 words

US Federal Tax Brackets Explained: How Much Tax Will I Owe in 2026?

Master the difference between marginal and effective tax rates, explore the latest IRS income tax brackets, and learn how standard deductions and 401(k) contributions maximize take-home pay.

Read Pillar Guide
Complete Toolkit Collections

Upgrade Your Financial & Career Planning Workflow

Explore our dedicated calculators to systematically plan your career, estimate taxes, and manage your financial growth.