Capital Gains Calculator

The calculator below will show the approximate capital gains tax deferred by an individual taxpayer when performing an IRC Section 1031 exchange. Please enter ‘0’ for all unused fields.

Step One
Net Adjusted Basis Calculation
Step Two
Capital Gain Amount
Step Three
Capital Gain Tax Due
* Federal Capital Gain Tax Due
State Capital Gain Tax Due
*Calculated on capital gains less depreciation:
**Add the 3.8% medicare tax on net investments income, if applicable
***Including recapture of depreciation at 25%

What Are Capital Gains? 


Capital gains are, simply put, the profits earned from selling an asset for more than its original purchase price. Common assets that generate capital gains include stocks, real estate, bonds, and other investments. For example, if you buy shares of a company for $1,000 and later sell them for $1,500, the $500 profit is considered a capital gain.


There are two main types of capital gains:


  • Short-term capital gains apply to assets sold within one year of purchase. These gains are taxed at the same rate as your regular income, which can be relatively high.
  • Long-term capital gains apply to assets held for more than one year. These gains are usually taxed at a lower rate, encouraging long-term investment.


Capital gains are part of your taxable income and must be reported when you file your taxes. The amount of capital gains tax you owe depends on factors like your total income, the length of time you held the asset, and current tax laws. 


How Are Capital Gains Taxed? 


Understanding how capital gains are taxed is essential for anyone selling investments like stocks, real estate, or other assets, as tax rates vary depending on the holding period and your income level. Let’s take a look at how short-term capital gains and long-term capital gains are taxed. 


Taxes on Short-Term Capital Gains 


Short-term capital gains are profits from selling an asset you've owned for one year or less. These gains are taxed as ordinary income, meaning they follow the same tax rates as your regular paycheck. The exact rate you pay depends on your federal income tax bracket, which can range from 10% to 37%.


For example, if you're in the 24% tax bracket and you sell a stock after holding it for six months, your short-term capital gain will be taxed at 24%. This can result in a higher tax bill compared to long-term capital gains, which are taxed at lower rates.


Because of this, many investors try to hold onto assets for more than a year to qualify for the more favorable long-term capital gains tax rates.


Taxes on Long-Term Capital Gains


Long-term capital gains are profits from selling an asset you've held for more than one year. These gains are taxed at lower rates than short-term gains, which makes long-term investing more tax efficient.


In the U.S., long-term capital gains tax rates are typically 0%, 15%, or 20%, depending on your taxable income and filing status. Most taxpayers fall into the 15% bracket, but lower-income individuals may qualify for the 0% rate, while high-income earners may owe 20%.


For example, if you bought stock and sold it two years later for a $1,000 profit, and your income qualifies for the 15% rate, you'd owe $150 in long-term capital gains tax. These reduced rates apply to a wide range of assets, including stocks, bonds, real estate (excluding your primary home under certain conditions), and more.


A capital gains tax calculator can quickly estimate your short-term or long-term capital gains tax bill based on current IRS rates and your financial info. 


Calculating Capital Gains Tax 


Calculating your capital gains tax can seem complicated, but breaking it down into simple steps makes the process much easier. Whether you’re selling stocks, real estate, or another investment, the total tax you owe depends on how much you earned, how long you held the asset, and your overall income level.


Why Use a Capital Gains Tax Calculator? 


A capital gains tax calculator is a powerful tool that helps you estimate how much tax you might owe when selling an investment. Instead of guessing or digging through tax tables, the calculator does the math quickly and accurately.


Here’s why it’s worth using:


  • Saves time: No need to manually crunch numbers or look up tax brackets. Just plug in your info and get instant results.
  • Improves accuracy: The calculator factors in your holding period, income level, and filing status to apply the correct short- or long-term tax rate.
  • Helps with financial planning: Knowing your potential tax bill upfront helps you plan better, whether you’re reinvesting profits, paying off debt, or saving for the future.
  • Identifies tax-saving opportunities: Some calculators highlight ways to reduce your tax burden, like holding an asset longer or exploring strategies like a 1031 exchange for real estate.


Whether you're selling stocks, crypto, or property, using a capital gains tax calculator is a smart first step toward making confident, tax-aware financial decisions.


Using a capital gains tax calculator



Calculating Capital Gains Tax Manually 


Interested in doing the math yourself? Here’s a step-by-step guide to help you manually calculate capital gains tax. 


Step 1: Figure Out Your Sale Price


Start with how much you sold the asset for.  


Step 2: Calculate Your Cost Basis


Your cost basis is what you originally paid for the asset, plus or minus certain amounts. Depending on what you sold, that might include:


  • Purchase price
  • Home improvements (for real estate)
  • Reinvested dividends (for stocks)
  • Adjustments for depreciation


Getting this number right is key because it determines how much of your sale is profit.


Step 3: Subtract to Find Your Gain (or Loss)


Now, subtract your cost basis from your sale price:


Capital Gain = Sale Price – Cost Basis


If the number is positive, you’ve made a capital gain. If it’s negative, that’s a capital loss, which could help lower your tax bill.


Step 4: Check How Long You Held the Asset


This part is critical in accurately calculating your capital gains tax:


  • If you held the asset one year or less, your gain is short-term.
  • If you held it more than one year, it’s a long-term gain.


Because short-term and long-term gains are taxed differently, it’s important to ensure you understand whether you’re responsible for short-term or long-term capital gains tax.


Step 5: Apply the Right Tax Rate


Once you verify the amount of time you held the asset, you can apply the appropriate capital gains tax rate. Short-term capital gains are taxed at your regular income tax rate (anywhere from 10% to 37%), while long-term capital gains are taxed at lower rates:


  • 0% for low-income earners
  • 15% for most people
  • 20% for high-income earners


Because long-term capital gains are taxed at lower rates, many investors try to hold assets longer than a year.


Step 6: Don’t Forget Extra Taxes


Depending on your situation, you might also owe:


  • Net Investment Income Tax (NIIT): NIIT is a 3.8% tax for high-income earners.
  • State capital gains tax: Some states tax capital gains separately, with rates from 0% to 13%. 


Additionally, there may be certain costs or expenses incurred during the ownership of the asset, or in its sale, that your tax advisor can identify as eligible deductions. 


Due to the complexities involved with calculating capital gains tax, it’s worth checking your state’s rules—using a capital gains tax calculator to do some of the heavy lifting.


The Final Word on Calculating Capital Gains Tax


Calculating your capital gains tax is a crucial step in understanding the true cost—and profit—of selling an investment. Our capital gains tax calculator makes it easy to estimate what you might owe, so you can plan ahead and make informed financial decisions. 


If you're selling real estate, don’t forget to explore a 1031 exchange. This IRS-approved strategy allows you to defer capital gains taxes by reinvesting the proceeds into a like-kind property, helping you grow your investments tax-efficiently. Interested in seeing whether a 1031 exchange could be right for you? Contact First American Exchange Company today.