Opportunity Zone Tax Benefits Example: A $500,000 Capital Gain, Year by Year
A full walkthrough of a $500,000 capital gain invested in an Opportunity Zone under OZ 2.0 rules. Side-by-side comparison against pay-now and 1031 exchange. With tables and math.
Opportunity Zone tax benefits sound attractive in the abstract. The numbers make them concrete. This guide walks through a single real-world example — a $500,000 long-term capital gain invested under OZ 2.0 rules — and compares it against two alternatives: paying tax immediately and a 1031 exchange.
All figures assume federal tax only (20 percent long-term capital gains rate plus 3.8 percent Net Investment Income Tax, for an effective 23.8 percent federal rate). State tax is not modeled; add your state rate to estimate your actual outcome.
The setup
You realize a $500,000 long-term capital gain on January 15, 2027, from the sale of appreciated stock. You decide to invest the gain and compare three strategies:
- Pay tax now. Recognize the gain, pay the federal tax, invest the remaining after-tax amount.
- OZ 2.0 investment. Roll the full $500,000 gain into a standard Qualified Opportunity Fund before July 14, 2027 (within the 180-day window).
- 1031 exchange. Assume the gain was from the sale of real estate (swap the stock gain in this example for real estate). Defer the full gain into like-kind replacement real estate.
Assume all three alternative investments earn 8 percent compound annual return over a 10-year hold.
Scenario 1: Pay tax now
You recognize the $500,000 gain on your 2027 tax return.
| Item | Amount |
|---|---|
| Capital gain | $500,000 |
| Federal tax at 23.8% | $119,000 |
| After-tax proceeds to invest | $381,000 |
You invest the $381,000 at 8 percent annual return.
After 10 years (January 2037):
- Ending value: $381,000 × (1.08)^10 = $822,744
- Unrealized gain: $441,744
If you then sell the investment in 2037:
- Capital gains tax at 23.8%: $105,135
- Net after all taxes: $717,609
Scenario 2: OZ 2.0 investment
You invest the full $500,000 gain into a standard QOF on January 15, 2027. All $500,000 compounds tax-deferred inside the fund.
Year 5 (January 2032): basis step-up and deferred gain recognition
Under OZ 2.0, holding the QOF investment for 5 years earns a 10 percent basis step-up on the deferred capital gain, and the deferred gain is recognized.
| Item | Calculation | Amount |
|---|---|---|
| Original deferred gain | $500,000 | $500,000 |
| 10% basis step-up | $500,000 × 10% | $50,000 |
| Taxable deferred gain | $500,000 − $50,000 | $450,000 |
| Federal tax at 23.8% | $450,000 × 23.8% | $107,100 |
You owe $107,100 in federal tax in year 5. Your QOF investment continues.
Important: you pay this $107,100 out of other funds or by partially selling your QOF interest (which would forfeit part of the 10-year benefit). For this example, assume you pay from other funds.
Through year 5 the QOF has grown: $500,000 × (1.08)^5 = $734,664. You continue holding.
Year 10 (January 2037): 100 percent exclusion on appreciation
You hold your QOF investment for 10 years and sell on January 15, 2037.
| Item | Calculation | Amount |
|---|---|---|
| Value of QOF investment at year 10 | $500,000 × (1.08)^10 | $1,079,462 |
| Appreciation of QOF investment | $1,079,462 − $500,000 | $579,462 |
| Federal tax on appreciation (10-year exclusion) | $0 | $0 |
| Proceeds from QOF sale | $1,079,462 | $1,079,462 |
The $579,462 of QOF appreciation is completely tax-free because you held for 10 years.
Netting it out
| Item | Amount |
|---|---|
| QOF sale proceeds (year 10) | $1,079,462 |
| Less: federal tax paid on deferred gain (year 5) | ($107,100) |
| Net after all taxes | $972,362 |
OZ 2.0 advantage vs pay-now: $972,362 − $717,609 = $254,753 (+35.5%)
Scenario 3: 1031 exchange (real estate gain only)
Assume the same $500,000 gain, but this time from the sale of a rental property, and you execute a like-kind 1031 exchange into a replacement rental property.
The 1031 defers the full $500,000 gain indefinitely. The replacement property grows at 8 percent annually. After 10 years, you sell.
| Item | Calculation | Amount |
|---|---|---|
| Value at year 10 | $500,000 × (1.08)^10 | $1,079,462 |
| Deferred gain | $500,000 | $500,000 |
| New appreciation during 1031 period | $579,462 | $579,462 |
| Total taxable gain at sale | $500,000 + $579,462 | $1,079,462 |
| Federal tax at 23.8% | $1,079,462 × 23.8% | $256,912 |
| Net after all taxes | $822,550 |
With a 1031 exchange, you ultimately pay tax on the full gain plus all the appreciation, unless you continue exchanging, die holding the property (step-up at death), or qualify for a primary-residence exclusion.
Side-by-side comparison
| Scenario | 10-Year Net (After Tax) | Advantage vs Pay-Now |
|---|---|---|
| Pay tax now → invest after-tax | $717,609 | — |
| 1031 exchange → invest, sell at year 10 | $822,550 | +$104,941 (+14.6%) |
| OZ 2.0 → hold 10 years → sell | $972,362 | +$254,753 (+35.5%) |
OZ 2.0 outperforms pay-now by about 36 percent and outperforms 1031 by about 18 percent in this specific scenario.
The rural QOF variation
If you invested the same $500,000 into a qualified rural QOF (a QOF that substantially invests in Opportunity Zones outside Metropolitan Statistical Areas), the basis step-up at year 5 is 30 percent instead of 10 percent.
Year 5 math:
- Taxable deferred gain: $500,000 − (30% × $500,000) = $350,000
- Federal tax at 23.8%: $83,300
Year 10 (same as standard QOF, because the 10-year exclusion applies equally):
- QOF value: $1,079,462
- Tax on appreciation: $0
Net after all taxes: $1,079,462 − $83,300 = $996,162
Rural QOF advantage vs pay-now: +$278,553 (+38.8%)
The rural QOF saves an additional $23,800 in federal tax in year 5 versus the standard QOF, which flows through to a larger ending net.
What happens if the deferred gain is indexed differently?
A subtle but important point: the tax on the deferred gain at year 5 is calculated at tax rates in effect in the recognition year (2032 in this example), not the original sale year. If capital gains rates change between 2027 and 2032, that affects the math.
Current federal rates (as of the 2025 tax year) assume a 20 percent long-term rate for top-bracket filers plus 3.8 percent NIIT. If rates were to rise to 28 percent plus NIIT by 2032, the year-5 tax bill on the deferred gain would be about $135,000 instead of $107,100.
This rate-change risk applies equally to all three scenarios — pay-now, OZ, and 1031 — but it’s worth flagging because OZ investors sometimes assume the year-5 tax is calculated at year-1 rates.
What if you sell the QOF before year 10?
If you sell your QOF investment before the 10-year mark, the tax-free appreciation benefit is lost. You’re taxed on the appreciation at standard capital gains rates, like any investment.
If you sell between year 5 and year 10, you’ve already captured the basis step-up on the deferred gain, but not the 10-year exclusion.
If you sell before year 5, you lose both the basis step-up and the 10-year exclusion. The deferred gain is recognized in the year of the sale.
The 10-year benefit is the real prize. Model your hold horizon carefully before committing.
What if you hold past year 10?
Under OZ 2.0, you can hold for up to 30 years and the 10-year exclusion continues to apply on a rolling basis. At the 30-year mark, your basis automatically steps up to fair market value — you lock in the tax-free appreciation without a sale. Any further appreciation after year 30 is taxable, but the first 30 years are permanently excluded.
This is a meaningful improvement from OZ 1.0, which had a hard 2047 sunset on the 10-year exclusion that was pushing investors toward forced sales.
The assumptions behind this example
Every investor’s numbers will look different. The calculations above assume:
- Federal tax only. Add state capital gains tax if you’re in a non-zero-tax state.
- Top federal bracket (20 percent long-term plus 3.8 percent NIIT). Lower brackets pay less.
- 8 percent annual return, compounded. Actual QOF returns vary widely by fund strategy, asset class, and vintage.
- A standard (non-rural) QOF in scenarios 1-2. Rural QOF comparison in the variation.
- You pay the year-5 deferred gain tax out of other funds (not from QOF proceeds).
- 10-year hold to full exit. No early sale.
- State conformity to federal OZ rules. Non-conforming states (including California) change the math.
- Tax rates remain constant between 2027 and 2037.
To model your specific gain size, state, and horizon, use our Capital Gains Calculator.
Bottom line
On a $500,000 long-term capital gain with a 10-year hold at 8 percent annual return, OZ 2.0 produces about $255,000 more in after-tax wealth than paying tax upfront, and about $150,000 more than a 1031 exchange. The rural QOF option adds another $24,000 on top of that.
The math works for three reasons stacked together: deferral creates time-value on the tax payment, the basis step-up reduces the deferred gain, and the 10-year exclusion eliminates tax on all QOF appreciation. Each benefit is worth something, but the combination is what makes the program compelling.
Before investing, confirm your state’s conformity to federal OZ rules, model the year-5 tax bill as a cash-flow event, and make sure your investment horizon is genuinely 10+ years. OZ rewards long holds and punishes early exits.
Sources: IRS Opportunity Zones; 26 U.S.C. § 1400Z-2; Plante Moran: The OBBB and Opportunity Zones 2.0. Not tax advice. Numbers in this example are illustrative and will vary with your specific situation. Consult a qualified CPA or tax attorney before making any investment decision.
Frequently asked questions
What federal tax rate applies to my capital gain?
How is the deferred capital gain calculated at the end of the deferral period?
Is the 10-year tax-free benefit applied to just the original gain or all appreciation?
Does this example include state tax?
What happens if I need the money before the 10-year mark?
Get the OZ 2.0 Investor Guide
One email when major OZ 2.0 events happen — Treasury guidance, state filings, rule changes. Unsubscribe anytime.