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

In the current business environment that is fast-paced, compliance with regulations has grown more complex and demanding than it ever...

Selling a property after you have built up wealth in real estate can be a double-edged blade. You’re releasing capital...

If you have worked for a public company before, you are familiar with the quarterly earnings cycle and employee benefit...

Launching the business of your dreams is an incredible feeling. If you don’t plan your taxes well, this high can...

Even if you earn more, it shouldn’t limit your options for retirement planning. There are currently viable options for any...

Everyone earns money in different ways. It could be from a job, business or investments, or even benefits like social...