Audited 05 Aug 2026·Last updated 28 Oct 2026·3 citations·Tier 2·0 uses

Opportunity Zone Calculator

Split a capital gain into the part a qualified opportunity fund investment can defer, the part taxed now, and any money invested beyond the gain.

Opportunity Zone Calculator

$
$
Eligible gain modeled as deferred
200,000.00
The dollar amount of eligible gain your fund investment can cover with a deferral election: the smaller of the gain and the amount invested.
Eligible gain not covered by entered QOF investment
50,000.00
QOF investment above entered eligible gain
0.00

Background.

You have sold shares, a business interest or a building at a large profit, and someone has mentioned an opportunity fund. The idea is simple: reinvest the gain — not the whole sale price, only the gain — in a qualified opportunity fund within 180 days, elect deferral on your return, and the tax on that gain is postponed. Opportunity zones were created by the Tax Cuts and Jobs Act of 2017 and cover low-income census tracts in all 50 states, the District of Columbia and five US territories. You do not have to live or work in one to invest.

The first question is how much of the gain the investment actually covers. Deferral reaches only the amount of eligible gain you put into the fund, so a $250,000 gain with $200,000 reinvested leaves $50,000 taxable this year. Money you put in beyond the gain is not wasted, but it is a separate investment with none of the tax benefits. The calculator makes that three-way split.

The second question is when the deferred tax comes due, and the answer changed with the One Big Beautiful Bill Act of July 2025. For investments made on or before December 31, 2026, the original rule holds: the deferred gain is taxed in the year that includes the earlier of a sale or other inclusion event and December 31, 2026. Anyone holding one of those investments will report the remaining deferred gain on their 2026 return. For investments made on or after January 1, 2027, deferral runs for up to five years from the date of the investment, and new zones are designated for rolling ten-year periods, the first running from January 1, 2027 to December 31, 2036.

What is opportunity zone calculator?

Opportunity zone deferral is an election under section 1400Z-2 of the Internal Revenue Code to leave an eligible gain out of income for the year it is realized, to the extent that the same amount is invested in a qualified opportunity fund within 180 days. Eligible gains are capital gains and qualified section 1231 gains, the gains on business property held for more than a year. A qualified opportunity fund is a corporation or partnership organized to invest in zone property, which certifies itself to the IRS each year on Form 8996. The investor's starting basis in the fund is zero, which is how the deferred gain is preserved for later taxation.

How to use this calculator.

  1. Enter the eligible gain: the capital gain or section 1231 gain from the sale, as it would appear on Form 8949 or Form 4797 — the gain, not the proceeds. If the gain came to you through a partnership or S corporation K-1, use the figure reported to you.
  2. Enter the amount you invested, or plan to invest, in the qualified opportunity fund within the 180 days. The window generally starts on the day the gain would be recognized; for gain passed through a partnership you can instead start it on the last day of the partnership's tax year or on the partnership return's unextended due date.
  3. Read the three results. The deferred figure is what your election can cover, the amount not covered is taxable in the year of the sale, and any surplus investment is outside the program.
  4. Check the investment date against December 31, 2026, because it decides how long the deferral lasts, and confirm with the fund that it is certified on Form 8996. You make the deferral election on Form 8949 and report the holding each year on Form 8997.

The formula.

simplified gain deferral = min(eligible gain, amount timely invested in a qualified opportunity fund); eligibility and recognition dates are outside scope

The calculation is three comparisons. Deferred gain = min(G, I), where G is the eligible gain and I is the amount invested in the fund. Gain recognized now = max(G − I, 0): the part of the gain your investment did not cover, taxed in the ordinary way in the year of the sale. Investment above the gain = max(I − G, 0): money that the law treats as a separate, non-qualifying interest in the fund, with no deferral, no basis increase and no ten-year exclusion. The arithmetic stops there on purpose. It does not test whether the 180-day deadline was met, whether the fund qualifies, or how long you will hold, and it does not compute the tax on any figure. When the deferred gain is eventually included, the amount taxed is the deferred gain or, if the fund interest is worth less by then, its fair market value, reduced by any basis increase you have earned — so the deferred figure is the most that can be taxed later, not a prediction.

A worked example.

Example

An investor sells a block of shares and realizes a $250,000 long-term capital gain. Within 180 days they put $200,000 into a qualified opportunity fund and elect deferral. The deferred gain is the smaller of the gain and the investment: min($250,000, $200,000) = $200,000. The uncovered gain is $250,000 − $200,000 = $50,000, which is reported and taxed for the year of the sale. Because the investment did not exceed the gain, nothing falls outside the program: max($200,000 − $250,000, 0) = $0. What happens to the $200,000 depends on the date of the investment. Made in 2026, it is taxed on the 2026 return. Made on or after January 1, 2027 and held five years, it is taxed in the fifth year, but the investor's basis rises by 10% of the deferred gain, so $20,000 is never taxed and $180,000 is included — assuming the fund interest is still worth at least $200,000. In a qualified rural opportunity fund the increase is 30%, leaving $140,000 to include.

rate Percent8
eligible Amount100,000
statutory Limit1,000,000,000
eligible Gain250,000
qualified Opportunity Fund Investment200,000

Frequently asked questions.

Do I have to reinvest the whole sale price, or just the gain?
Just the gain. If you sold a building for $1 million with a $250,000 gain, investing $250,000 within 180 days covers the whole gain and the remaining $750,000 is yours to use as you like. This is a real difference from a like-kind exchange, where the replacement property generally has to absorb the full proceeds to avoid tax.
I sold an asset in the second half of 2026. Should I invest before or after January 1, 2027?
The date matters a great deal. An investment made on or before December 31, 2026 has its deferred gain taxed in the year that includes December 31, 2026, so a 2026 gain invested in 2026 lands on the same return it would have been taxed on anyway. IRS Notice 2026-40 confirms that a gain realized in 2026 can be deferred by a timely investment made on or after January 1, 2027, which brings the new five-year deferral and the 10% basis increase. The 180-day deadline still applies, so this works only if the window reaches into 2027.
What happens to my existing opportunity fund investment at the end of 2026?
Under the original rules, the remaining deferred gain is included in income for the 2026 tax year even if you keep the investment. The IRS notice adds that you still hold a qualifying investment afterwards, so if you reach ten years in the fund and keep meeting the other requirements, you can still elect to step your basis up to fair market value on the sale, excluding the fund's appreciation from tax.
What is the ten-year benefit, and does it still exist after the 2025 law?
Yes. If you hold a qualifying investment for at least ten years, you can elect to treat its basis as its fair market value when you sell, so the growth inside the fund is not taxed. For investments made after December 31, 2026, the value is measured at the earlier of the sale or 30 years after the investment, which caps the tax-free growth period at 30 years.
What if I invest more than my gain?
The surplus becomes a separate interest in the same fund that does not qualify for any of the benefits: no deferral, no basis increase and no ten-year exclusion. The calculator reports it as investment above the gain so you can see it. Some investors do this deliberately to meet a fund's minimum, but it should be a choice made with the tax result in view.
Which forms do I file?
You elect deferral on Form 8949 for the year the gain would otherwise be recognized, following the instructions for reporting a qualified opportunity fund election. You file Form 8997 each year to report the investments you hold and any deferred gain you have included. The fund itself files Form 8996 to certify that it is a qualified opportunity fund and to pass its annual asset tests.

How this page was produced

Published by
Quanta Calculator
Primary sources
3 cited below
Method
simplified gain deferral = min(eligible gain, amount timely invested in a qualified opportunity fund); eligibility and recognition dates are outside scope
Published
Last verified

Built with AI assistance and verified by automated tests against the cited sources — every worked example on this page is computed by the same code that runs the calculator. How we build and check calculators.

Embed

Quanta Pro

Paid features are coming later.

  • All 1560 calculators remain free
  • No billing is enabled
Coming soon