TAX
Long Term Capital Gains Calculator - Preferential Tax Rates
By Worldtickers ·
Estimate your federal long-term capital gains tax using the preferential 0%, 15%, or 20% rate brackets for assets held more than one year.
This long term capital gains tool focuses on estimate your federal long-term capital gains tax using the preferential 0%, 15%, or 20% rate brackets for assets held more than one year. Use it to analyze property numbers such as cash flow, costs, returns, taxes, rent, and financing assumptions before buying, selling, refinancing, or comparing rental scenarios.
Calculator
Long-Term Capital Gains Calculator
Calculate tax on long-term gains (assets held 12+ months).
What Is Long-Term Capital Gains Tax?
A long-term capital gain is the profit you earn when you sell an investment — stocks, mutual funds, real estate, or other capital assets — after holding it for more than one year. Because the US tax code incentivizes long-term investing, these gains receive preferential treatment and are taxed at lower rates than your ordinary income. Instead of being taxed at your marginal rate of 22%, 24%, 32%, or higher, qualifying long-term gains face rates of just 0%, 15%, or 20% depending on your taxable income.
The long-term capital gains tax rates are separate from — and more favorable than — the ordinary income brackets. For 2026, single filers pay 0% on taxable income up to roughly $47,025, 15% up to approximately $518,900, and 20% above that threshold. Married filing jointly taxpayers get approximately double those thresholds. The 0% rate is especially valuable for retirees and low-to-moderate income earners who can potentially sell appreciated assets and pay no federal capital gains tax at all.
To qualify, you must hold the asset for at least 12 months and one day before selling. Selling even one day too early converts the entire gain to short-term, which is taxed at your ordinary income rate — potentially costing you thousands in additional tax on a large gain. This holding period rule is one of the most impactful distinctions in the tax code for individual investors.
How to Use This Calculator
Enter your total long-term capital gains from selling investments that you held for more than one year. Include gains from stocks, mutual funds, ETFs, real estate (excluding your primary residence, which has its own exclusion rules), and other capital assets.
Next, enter your estimated taxable income (your adjusted gross income minus standard or itemized deductions) and select your filing status. The calculator determines which of the three rate brackets — 0%, 15%, or 20% — your gains fall into based on where your taxable income sits within the brackets.
The result shows your estimated federal long-term capital gains tax, the effective rate on your gains, and your total tax liability including the Net Investment Income Tax if applicable. This gives you a clear picture of what you would owe before any state-level capital gains tax (which varies by state and is not included here).
Formula
Long-term capital gains tax is calculated by stacking your gains on top of your ordinary income and applying the preferential rate brackets. The basic formula is:
Tax = Gain₁ × 0% + Gain₂ × 15% + Gain₃ × 20%
Where Gain₁ is the portion of gains falling within the 0% bracket, Gain₂ is the portion in the 15% bracket, and Gain₃ is the portion in the 20% bracket. The brackets are determined by adding your long-term gains to your ordinary taxable income. For example, if your taxable income is $45,000 and you have $10,000 in long-term gains, the first $2,025 of gains (filling up to $47,025) is taxed at 0%, and the remaining $7,975 is taxed at 15%.
If your modified adjusted gross income exceeds $200,000 (single) or $250,000 (married filing jointly), the 3.8% Net Investment Income Tax (NIIT) is added to the capital gains tax. For the highest earners, a 28% surtax on capital gains may also apply for 2026, bringing the top combined federal rate to approximately 43.8%.
Examples
Example 1: 0% Rate Bracket
A single filer has $40,000 in ordinary taxable income and sells stock for a $10,000 long-term gain. Combined income is $50,000. The 0% bracket goes up to approximately $47,025, so $7,025 of the gain is taxed at 0%. The remaining $2,975 falls in the 15% bracket. Total federal tax on the gain: approximately $446, an effective rate of about 4.5%.
Example 2: 15% Rate Bracket
A married couple filing jointly has $80,000 in taxable income and realizes $50,000 in long-term gains. Combined income is $130,000, which falls entirely within the 15% bracket (married 15% bracket runs up to about $553,850). The full $50,000 gain is taxed at 15%, resulting in federal tax of approximately $7,500 on the gains.
Example 3: 20% Rate Bracket
A single filer has $500,000 in taxable income and sells appreciated stock for a $100,000 gain. Combined income is $600,000, well above the 20% threshold of approximately $518,900. The entire $100,000 gain is taxed at 20%, resulting in federal tax of approximately $20,000on the gain. If the filer's MAGI exceeds $200,000, the additional 3.8% NIIT would also apply, bringing the total to roughly $23,800.
Tips
Time Your Sales Carefully
The single most impactful strategy is ensuring you hold assets for at least one year and one day. Selling a day early converts the gain to short-term, which is taxed at ordinary rates potentially three to four times higher. At year-end, review positions with gains that are close to the one-year mark and consider delaying the sale to capture long-term treatment.
Harvest Losses to Offset Gains
If you have investments at a loss, selling them to offset your gains is a powerful strategy. Realized losses first offset gains of the same type, then can offset gains of the other type. Up to $3,000 of remaining net losses can offset ordinary income each year, with excess losses carrying forward indefinitely.
Watch the NIIT Threshold
If your MAGI is near the $200,000 (single) or $250,000 (married) NIIT threshold, consider whether spreading gains across multiple tax years — or accelerating deductions — could keep you below it. The additional 3.8% surtax effectively raises your capital gains rate by nearly 4 percentage points.
Consider Qualified Opportunity Zone Funds
If you have large capital gains, investing in a Qualified Opportunity Zone (QOZ) fund can defer the gain and potentially reduce the tax owed. While the original benefits have evolved, QOZ funds still offer deferral advantages for gains reinvested within 180 days of the sale.
FAQ
What is the long-term capital gains tax rate for 2026?
For 2026, long-term capital gains are taxed at 0%, 15%, or 20% depending on your taxable income and filing status. The 0% rate applies to taxpayers with taxable income up to roughly $47,025 (single) or $94,050 (married filing jointly). The 15% rate covers most middle-income taxpayers, and the 20% rate applies to the highest earners.
How long must I hold an asset to qualify for long-term rates?
You must hold the asset for more than one year (at least 12 months and one day) before selling. If you sell on or before the one-year anniversary of your purchase, the gain is treated as short-term and taxed at ordinary income tax rates instead.
Does the 3.8% NIIT apply to long-term capital gains?
Yes. If your modified adjusted gross income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly), the 3.8% Net Investment Income Tax (NIIT) may apply on top of the long-term capital gains rate. This means your effective rate could be 18.8% or 23.8% at the top bracket.
Are long-term capital gains taxed differently for high earners?
Yes. Starting in 2026, a 28% surtax on long-term capital gains applies to taxpayers with adjusted gross income above $1 million, in addition to the standard 20% rate. This effectively creates a top combined federal rate of approximately 43.8% when including the NIIT.
Do long-term capital gains get added to my ordinary income?
No. Long-term capital gains are taxed using their own separate rate brackets, which are more favorable than ordinary income brackets. However, your ordinary income determines which capital gains bracket you fall into by filling up the gain brackets from the bottom.
Can I deduct capital losses against long-term gains?
Yes. Capital losses first offset gains of the same type (long-term losses offset long-term gains), then short-term losses offset short-term gains. If losses exceed gains, you can deduct up to $3,000 of net losses against ordinary income per year, with the remainder carrying forward to future tax years.
Do wash sale rules apply to long-term capital gains?
The wash sale rule itself applies to short-term dispositions, but if you sell a stock at a loss and repurchase a substantially identical security within 30 days, the loss is disallowed and added to the cost basis of the replacement shares. This effectively defers the loss rather than eliminating it.
How do qualified dividends interact with long-term capital gains?
Qualified dividends are taxed at the same preferential long-term capital gains rates (0%, 15%, or 20%). They share the same rate brackets, so a large qualified dividend could push long-term gains into a higher bracket, and vice versa. Both are reported on Schedule D and taxed using the qualified dividend and capital gains tax worksheet.