Opportunity Zone Investment Details
Original Capital Gain
Opportunity Zone Investment
Must be within 180 days of the gain. Investments after December 31, 2026 fall under the new rolling 5-year rules.
Rural: for investments after 2026, a qualified rural opportunity fund gets a 30% step-up instead of 10%.
Tax Information
Used for the deferred gain if the original gain was short-term.
Long-term rate including the 3.8% NIIT and state tax if they apply (e.g., 23.8).
On this page
Enter a capital gain, the date you realized it, and the date and amount you invest in a qualified opportunity fund (QOF) to see when the deferred gain will be taxed, how much a basis step-up saves, and what a 10-year hold is worth.
The quick answer: investing a capital gain in a qualified opportunity fund within 180 days lets you postpone the tax on that gain, cut it by a 10% basis step-up (30% for a rural fund) if the investment qualifies, and, after 10 years, sell the fund investment with no tax on its appreciation. The rules are in 26 U.S.C. §1400Z-2. The One Big Beautiful Bill Act (P.L. 119-21, §70421) made the program permanent and rewrote the deferral for amounts invested after December 31, 2026.
This calculator is for informational purposes only, and its results are estimates. Fund qualification, the 90% asset test, and partnership-level details can change the outcome.
Two sets of rules, depending on when you invest
The single most important input is the investment date, because it decides which version of the law applies.
| Invested by Dec 31, 2026 (original rules) | Invested after Dec 31, 2026 (OBBBA rules) | |
|---|---|---|
| Deferred gain taxed | Earlier of sale or Dec 31, 2026 | Earlier of sale or 5th anniversary of the investment |
| Tax paid with | 2026 return (filed in 2027) | Return for the year of the sale or 5th anniversary |
| Basis step-up | 10% if held 5 years, 15% if held 7 years, counted only up to Dec 31, 2026 | 10% at 5 years; 30% in a qualified rural opportunity fund |
| Who can still get a step-up | Investments made by Dec 31, 2021 (10%) or Dec 31, 2019 (15%) | Anyone who holds 5 years |
| 10-year exclusion | Basis equals fair market value on sale | Same, with value frozen at the 30th anniversary |
Under the original rules, the step-ups reduce the amount included on December 31, 2026 only if the holding period has been reached by that date. An investment made in 2022 or later reaches five years after 2026, too late to lower the inclusion. That is why the calculator shows no step-up for a 2024 or 2026 investment, even if you plan to hold it for ten years.
For investments made after 2026, the law says the five-year step-up is treated as occurring before the inclusion date, so a five-year hold always gets it. A qualified rural opportunity fund must hold at least 90% of its assets in opportunity zone property located in zones made up entirely of rural areas (outside cities and towns of more than 50,000 people and their adjacent urbanized areas). Picking "Rural" as the location applies the 30% step-up to post-2026 investments only.
What the calculator asks for
| Input | What to enter |
|---|---|
| Original capital gain amount | The gain you want to defer |
| Gain realization date | The sale date that produced the gain |
| Original gain holding period | Long-term or short-term; the deferred gain keeps its character when it is included |
| QOZ investment amount | Cash invested in the QOF. Only the part up to the gain is a qualifying investment |
| QOZ investment date | Must be within 180 days of the gain |
| Planned holding period | How long you expect to hold the QOF investment |
| Expected annual return | Used to project the investment's value |
| Opportunity zone location | Rural turns on the 30% step-up for post-2026 investments |
| Ordinary income tax rate | Applied to the deferred gain if it was short-term |
| Capital gains tax rate | Your long-term rate, including the 3.8% net investment income tax and state tax if they apply |
How the calculator works
- 180-day test. If the investment date is more than 180 days after the gain, nothing is deferred and the tool shows no opportunity zone benefit.
- Qualifying investment. The deferred gain equals the smaller of the gain and the amount invested. Any extra cash is a separate, non-qualifying investment (§1400Z-2(e)(1)); its growth is taxed normally.
- Inclusion date. December 31, 2026 for original-rules investments, or the fifth anniversary for post-2026 investments, unless you sell first.
- Included gain. The smaller of the deferred gain or the investment's value on the inclusion date, minus any step-up. The tax on it is shown as deferred tax, due with that year's return. It is not counted as a saving.
- Step-up saving. The step-up percentage times the deferred gain, times your rate. This tax is never paid.
- 10-year exclusion. With a hold of 10 years or more, the tool assumes you elect a fair-market-value basis on the sale, so the appreciation above your basis is not taxed. The saving is that appreciation times your capital gains rate.
- Comparison. The "traditional" column pays the tax on the gain today and invests the rest at the same return, then pays capital gains tax on the growth. The opportunity zone column invests the full amount, pays the deferred tax at the inclusion date, and is charged the growth that tax payment would have earned.
Worked examples
All three examples defer a $500,000 long-term gain, assume an 8% annual return and a 23.8% rate (20% plus 3.8% NIIT), and hold for 10 years.
A 2027 investment under the new rules
You sell stock on August 15, 2026 and invest $500,000 in a QOF on January 15, 2027, which is 153 days later.
- Inclusion date: January 15, 2032 (fifth anniversary)
- Step-up: 10% × $500,000 = $50,000
- Included gain: $500,000 − $50,000 = $450,000; tax due with the 2032 return: $450,000 × 23.8% = $107,100
- Step-up saving: $50,000 × 23.8% = $11,900
- Value after 10 years: $500,000 × 1.08^10 = $1,079,462
- Excluded appreciation: $1,079,462 − $500,000 basis = $579,462; tax saved: $137,912
- Permanent savings: $11,900 + $137,912 = $149,812
Note the planning point: because the sale happened in 2026 but the cash went in after December 31, 2026, the post-2026 rules apply, with a rolling five-year deferral instead of a December 31, 2026 inclusion.
The same investment in a rural fund
With a qualified rural opportunity fund, the step-up is 30%, or $150,000. The included gain falls to $350,000, the tax due in 2032 is $83,300, and the step-up saving rises to $35,700. Total permanent savings: $173,612.
A 2024 investment under the original rules
You sold on March 15, 2024 and invested on May 1, 2024.
- Inclusion date: December 31, 2026. You have held for about two and a half years, so there is no step-up.
- Included gain: $500,000; tax: $119,000, due with the 2026 return in April 2027
- If you hold until May 1, 2034, the 10-year election still excludes the $579,462 of appreciation, saving $137,912
Investors in this position need cash for the 2026 tax bill even though the fund investment is illiquid. Plan for it now: the tax withholding calculator can help size estimated payments.
Free · 1-page PDF-ready sheet
Every 2026 tax number on one page
Brackets, standard deduction, capital-gains thresholds, credits, and the new OBBBA deductions — one printable page instead of 40 IRS PDFs.
- All 7 brackets for single, joint, and head of household
- Tips, overtime, senior, and car-loan deduction caps
- 0% / 15% / 20% capital-gains breakpoints
- Credits, estate and gift limits, AMT exemption
Unlocked — the Tax Numbers Cheat Sheet is ready.
Open the Tax Numbers Cheat SheetWhat the results mean
Deferred tax is a bill with a date on it. The calculator shows the year it is due so you can plan liquidity; many QOFs don't distribute cash, so you will usually pay it from other funds.
Step-up saving and 10-year exclusion saving are permanent. The sum is shown as "permanent tax savings".
QOZ advantage compares ending after-tax wealth at the same return. It ignores fund fees, carried interest, illiquidity and the risk of investing in a distressed area, all of which can erase the tax advantage. A fund that returns 3% a year after fees will usually lose to a low-cost index fund returning 7%, no matter the tax treatment.
Requirements to keep in mind
- Eligible gains: capital gains and qualified §1231 gains from sales to unrelated persons. Gains passed through from a partnership or S corporation can start the 180-day clock on the entity's sale date, the last day of the entity's tax year, or the entity's return due date (see the IRS opportunity zones FAQs).
- Equity, not debt: the QOF investment must be an equity interest in a corporation or partnership that self-certifies as a QOF and holds at least 90% of its assets in opportunity zone property, tested twice a year.
- Forms: you elect deferral on Form 8949 for the year of the gain, and you file Form 8997 every year you hold the investment. Missing Form 8997 can trigger IRS letters questioning the deferral.
- Selling early: a sale before the inclusion date triggers the deferred gain at that point and forfeits any step-up you haven't reached. A sale before 10 years taxes the appreciation.
- State tax: most states follow the federal deferral, but some (California among them) do not. Check your state before relying on state savings.
Opportunity zones compared with other gain strategies
| Strategy | What it does to the gain | Cap | Main requirement |
|---|---|---|---|
| Opportunity zone | Defers it, with a step-up for some investors; excludes the fund's own appreciation after 10 years | None | Invest within 180 days in a QOF |
| 1031 exchange | Defers gain on real property indefinitely | None | Like-kind real property, 45/180-day deadlines |
| QSBS exclusion | Excludes gain on qualifying startup stock | $10M or $15M per company, or 10× basis | C corporation stock held 3 to 5+ years |
| Tax-loss harvesting | Offsets gains with realized losses | Losses available | Wash-sale rule |
Unlike a 1031 exchange, a QOF investment needs only the gain, not the full sale proceeds, so you can take your original basis out in cash.
For broader planning on investment property and gains, see capital gains tax on real estate and capital gains tax strategies.
Frequently asked questions
When is the deferred gain from an opportunity zone investment taxed?
Can I still get the 10% or 15% opportunity zone step-up?
Is the deferral itself a tax saving?
How long do I have to invest a gain in an opportunity fund?
How we build our calculators
Formulas follow the published IRS, Treasury, or agency rules cited on the page, and run entirely in your browser — we never see the numbers you type. Results are estimates for informational purposes only and are not tax, legal, or investment advice. Editorial standards.