Long Term Capital Gains Calculator
Input Parameters
Computed Results
The long-term capital gains calculator estimates the taxes owed when you sell an asset held for more than one year. By factoring in your purchase price, sale price, annual income, filing status, and state tax rate, it determines your federal capital gains tax, potential Net Investment Income Tax (NIIT), and your net after-tax proceeds.
Practical Use Cases
Understanding your potential tax liability is important before selling an appreciated asset. This calculator helps you estimate the tax impact of selling stocks, real estate, or other investments held for over a year. It accounts for how your ordinary income pushes your capital gains into different federal tax brackets (0%, 15%, or 20%), applies the 3.8% Net Investment Income Tax (NIIT) if you exceed certain income thresholds, and includes estimated state and local taxes to give you a clear picture of your net proceeds.
Disclaimer: This calculator provides mathematical estimates for informational purposes only and does not constitute professional tax advice. Tax laws are complex and subject to change; consult a qualified tax professional regarding your specific situation.
Formula & Explanation
The calculator determines your total capital gains tax by calculating the gain and applying federal brackets, NIIT, and state taxes.
If the capital gain is zero or negative, no tax is owed. If there is a gain, the calculator stacks it on top of your Annual Taxable Income to determine which federal brackets apply. The federal brackets for long-term capital gains are 0%, 15%, and 20%, depending on your filing status and total income.
Additionally, the Net Investment Income Tax (NIIT) of 3.8% applies to the lesser of your capital gain or the amount by which your total income (ordinary income plus capital gain) exceeds the NIIT threshold for your filing status (e.g., $200,000 for Single, $250,000 for Married Filing Jointly).
Verified Scenario Walkthroughs
Here are examples of how different income levels and filing statuses affect capital gains taxes.
Entry Level Investment with Low Income
A single filer with $25,000 in annual income buys an asset for $5,000 and sells it for $7,500, resulting in a $2,500 capital gain. Because their total income ($27,500) remains within the 0% federal bracket and they live in a state with a 0% tax rate, they owe $0 in federal, NIIT, and state taxes. Their net proceeds are the full $7,500 sale price.
High Income Married Couple Selling Assets
A married couple filing jointly with $300,000 in annual income sells an asset for $450,000 that they purchased for $150,000, creating a $300,000 capital gain. Their total income reaches $600,000. They owe $45,812.50 in federal tax, $11,400 in NIIT (since their income exceeds the $250,000 threshold), and $16,500 in state tax (at a 5.5% rate). Their total tax is $73,712.50, leaving them with $376,287.50 in net proceeds.
Head of Household with Moderate Gain
A head of household earning $55,000 annually sells an asset for $65,000 (original cost $20,000), yielding a $45,000 gain. Their total income is $100,000. They owe $5,550 in federal tax and $1,912.50 in state tax (at 4.25%). They do not trigger the NIIT. Their total tax is $7,462.50, resulting in $57,537.50 in net proceeds.
How to Use the Calculator
Follow these steps to estimate your long-term capital gains tax:
- Purchase Price (Cost Basis): Enter the original amount paid for the asset, including any commissions or reinvested dividends.
- Sale Price: Input the gross amount received from selling the asset.
- Annual Taxable Income: Provide your ordinary taxable income (such as wages or business income), excluding the capital gain itself.
- Filing Status: Select your tax filing status (Single, Married Filing Jointly, Married Filing Separately, or Head of Household).
- State & Local Tax Rate: Enter your estimated combined state and local income tax rate as a percentage.
Inputs & Outputs
The table below summarizes the data used and generated by the calculator.
| Field | Type | Description |
|---|---|---|
| Purchase Price (Cost Basis) | Input | The original purchase price plus any commissions or reinvested dividends. |
| Sale Price | Input | The gross value received upon selling the asset. |
| Annual Taxable Income | Input | Your taxable ordinary income (wages, interest, business income) excluding this capital gain. |
| Filing Status | Input | Your tax filing status, which determines federal brackets and NIIT thresholds. |
| State & Local Tax Rate | Input | Estimated combined state and local income tax rate applicable to capital gains. |
| Total Capital Gains Tax | Output | The combined total of federal, NIIT, and state taxes owed on the gain. |
| Net Capital Gain | Output | The profit from the sale (Sale Price minus Purchase Price). |
| Federal Capital Gains Tax | Output | The tax owed to the federal government based on the 0%, 15%, and 20% brackets. |
| Net Investment Income Tax (NIIT 3.8%) | Output | The 3.8% surtax applied to investment income for high earners. |
| State & Local Capital Gains Tax | Output | The estimated tax owed to your state and local government. |
| Effective Capital Gains Tax Rate | Output | The total tax divided by the capital gain, expressed as a percentage. |
| Net After-Tax Proceeds | Output | The final amount you keep after subtracting all calculated taxes from the sale price. |
Frequently Asked Questions
What is considered a long-term capital gain?
A long-term capital gain occurs when you sell an asset for a profit after holding it for more than one year. These gains are typically taxed at lower federal rates than short-term gains.
How does my ordinary income affect my capital gains tax?
Your ordinary income establishes your baseline tax bracket. Your capital gain is added on top of your ordinary income, which determines whether your gain falls into the 0%, 15%, or 20% federal capital gains tax bracket.
What is the Net Investment Income Tax (NIIT)?
The NIIT is an additional 3.8% tax that applies to investment income, including capital gains, if your total income exceeds certain thresholds based on your filing status (e.g., $200,000 for single filers or $250,000 for married filing jointly).