Capital
Gains Tax
Calculator
Using a capital gains tax calculator is a quick and easy way to estimate your potential tax liability when selling an investment or property. It helps you plan ahead by giving you a rough idea of what you might owe, based on your sale price, purchase cost, and holding period. Keep in mind, though, that this tool provides only an estimate—actual taxes may vary depending on your full financial situation, deductions, and IRS rules. For accurate results and personalized advice, it’s always best to consult with a tax professional.

What Are Capital Gains?
Capital gains are the profits you make from selling an asset for more than you paid for it. Common taxable assets include:
Real estate (other than your primary residence)
Stocks and bonds
Cryptocurrency
Business equipment or investment property
The gain is calculated as:
Capital Gain = Sale Price – (Purchase Price + Improvements + Selling Costs)
If you sell an asset for less than your cost basis, you may have a capital loss, which can offset gains and reduce your tax bill.
Short-Term vs. Long-Term Capital Gains
The IRS classifies gains based on how long you held the asset before selling:
Short-Term Capital Gains
Assets held 1 year or less
Taxed at your ordinary income tax rate
Rates can range from 10% to 37% depending on your income
Long-Term Capital Gains
Assets held more than 1 year
Taxed at preferential rates, lower than ordinary income
Most taxpayers fall under 0%, 15%, or 20% rates
2024 Long-Term Capital Gains Tax Rates
| Filing Status | 0% Rate | 15% Rate | 20% Rate |
|---|---|---|---|
| Single | $0–$44,625 | $44,626–$492,300 | Over $492,300 |
| Married Filing Jointly | $0–$89,250 | $89,251–$553,850 | Over $553,850 |
| Head of Household | $0–$59,750 | $59,751–$523,050 | Over $523,050 |
Thresholds may adjust each year due to inflation.
How Is Capital Gains Tax Calculated?
Determine your basis: Original purchase price + improvements + selling costs
Calculate your capital gain: Sale price − adjusted basis
Identify holding period: Short-term or long-term
Apply the applicable tax rate
Example:
Bought a property for $300,000
Sold it for $450,000 after 3 years
Spent $20,000 on improvements and $15,000 on selling costs
Adjusted Basis = $300,000 + $20,000 + $15,000 = $335,000
Gain = $450,000 – $335,000 = $115,000
Tax (at 15%) = $17,250
Special Notes for Homeowners
If you sold your primary residence, you may qualify to exclude up to $250,000 (single) or $500,000 (married) in gains, as long as:
You owned and lived in the home for 2 of the last 5 years before the sale.
Capital Losses and Offsetting Gains
If you sell assets at a loss, you can:
Use losses to offset gains (short-term against short-term, etc.)
Deduct up to $3,000 per year of capital losses against ordinary income
Carry excess losses forward to future years
Tax laws are complex and your exact liability depends on multiple factors including your income, filing status, and deductions. This calculator offers a helpful estimate, but for strategic planning—especially involving real estate or large stock sales—consult with a qualified CPA to optimize your tax outcome.
Articles
- All Posts
- Tax Planning
- Tax News

Organize your finances with our 2026 small business tax calendar setup. Avoid penalties and stay compliant with IRS deadlines easily.

Discover tax planning for Texas business owners DFW to minimize tax liabilities. Learn strategies for optimizing federal and franchise taxes.

Discover how to choose business entity tax savings in 2026. Maximize your profits and minimize your tax burden with expert...

Discover the best investments for individuals and business owners. Learn to diversify your portfolio and align with clear financial goals.

Discover a tax-efficient owner compensation strategy for 2026. Learn to optimize your salary, distributions, and benefits to reduce tax liability.

Discover how to navigate IRS Form 990 in 2026. Ensure your nonprofit remains compliant and maintain your tax-exempt status with...
