If you hold a concentrated, highly appreciated stock position and want to convert it into real estate, the most common mistake is assuming a 1031 exchange can help — it can't. A 1031 exchange is limited to like-kind real property; you cannot 1031 stock into real estate. The accurate, tax-advantaged route is a Qualified Opportunity Fund (QOF) under IRC §1400Z-2: if you sell appreciated stock and realize a capital gain, you can reinvest that gain into a QOF within 180 days to defer it, and a QOF is frequently a real estate vehicle — so you get real estate exposure plus tax benefits, including tax-free appreciation on the QOF after a 10-year hold. Other tools worth knowing are QSBS (a potential exclusion on qualifying small-business stock under IRC §1202) and charitable structures. QOFs are securities sold to accredited investors after a suitability review; this is educational information, not tax advice — confirm with your CPA.
Why a 1031 Exchange Doesn't Apply to Stock
It's worth being blunt because the misconception is common: IRC §1031 defers gain only on an exchange of like-kind real property held for investment or business use. Stocks, bonds, and securities are explicitly outside §1031. You cannot take a concentrated stock position, “1031” it, and roll into an apartment building tax-deferred. See our explainer on 1031 exchanges versus selling and investing in stocks. So the question for an equity holder is different: how do I move a stock gain into real estate with tax advantages, given that 1031 is off the table?
The Lead Strategy: A Qualified Opportunity Fund
The most direct tax-advantaged path is a Qualified Opportunity Fund. Under IRC §1400Z-2, when you realize a capital gain — including from selling appreciated stock or other securities — you have 180 days to invest that gain amount into a QOF and defer it. Many QOFs are real estate funds developing or improving property in designated Opportunity Zones, so reinvesting your stock gain into a QOF can give you exactly the real estate exposure you wanted. Learn the basics in our QOF overview and the timing rules in the 180-day rule guide.
The headline benefit is on the back end: if you hold the QOF investment for at least 10 years, the appreciation on the QOF itself can be excluded from tax entirely — a genuine elimination of the new gains the fund generates (not the original deferred stock gain). See how the deferral and 10-year exclusion work. Two accuracy notes: only the realized gain needs to be reinvested (not the full sale proceeds) to qualify, and the original deferred gain is eventually recognized on a schedule set by law — the program was made permanent with a rolling deferral under the 2025 legislation often called “OZ 2.0,” but the exact recognition timing depends on current rules. Crypto and other security gains qualify too, as covered in investing crypto and stock gains in an Opportunity Zone.
A 1031 moves real estate into real estate. A Qualified Opportunity Fund moves a gain — from stock, crypto, or a business — into Opportunity Zone real estate. That's the bridge equity holders actually need.
QSBS: If Your Stock Is Qualifying Small-Business Stock
If your concentrated position is in qualified small business stock (QSBS) — original-issue C-corporation stock meeting the requirements of IRC §1202 — you may already have access to a powerful exclusion: a portion or all of the gain on a sale can be excluded from federal tax, subject to holding-period and per-issuer limits. This isn't a real estate strategy by itself, but it matters because it can change the math: if your gain is QSBS-eligible, you might exclude it outright rather than needing to defer it through a QOF, and then deploy the after-tax proceeds into real estate however you like. QSBS eligibility is technical and fact-specific, so a CPA should confirm whether your shares qualify before you plan around it.
Charitable Options for Appreciated Stock
If philanthropy is part of your plan, donating appreciated stock directly to a charity or a donor-advised fund can let you avoid the capital-gains tax on the donated shares while taking a charitable deduction for the fair market value (subject to AGI limits). A charitable remainder trust (CRT) can sell appreciated stock inside the trust without immediate tax, pay you an income stream, and leave the remainder to charity. These are not ways to end up owning real estate personally, but they're legitimate, accurate options for an appreciated position when charitable intent exists — and a CRT can hold or invest in real estate. We cover the trust mechanics in DSTs and charitable remainder trusts. Confirm deduction limits and structure with your CPA and attorney.
- A 1031 exchange does not apply to stock — you can't 1031 a stock position into real estate.
- The lead tax-advantaged route is a Qualified Opportunity Fund (IRC §1400Z-2): reinvest the stock gain within 180 days to defer it, often into OZ real estate, with potential tax-free appreciation after 10 years.
- Only the realized gain (not the full proceeds) needs to be reinvested in a QOF; the original deferred gain is recognized later on the statutory schedule.
- QSBS (IRC §1202) may exclude qualifying small-business-stock gain outright; charitable structures (DAF, CRT) suit appreciated stock when there's charitable intent.
How Baker 1031 Helps
Baker 1031 Investments helps accredited investors evaluate Qualified Opportunity Funds as a way to move appreciated capital gains — including stock gains — into real estate with tax advantages. We help you understand whether a QOF fits, evaluate fund offerings (sponsor, properties, fees, structure, and the 10-year horizon; see the Data Center), and stay within the 180-day window if suitable.
QOF interests are securities offered through the broker-dealer, Aurora Securities, Inc. (member FINRA/SIPC), to accredited investors after a suitability review. Baker 1031 does not provide tax or legal advice; your CPA and attorney confirm your gain's eligibility, QSBS status, charitable treatment, and the QOF deferral and exclusion rules, which are technical and time-sensitive. QOFs are speculative, illiquid, long-horizon investments; returns and tax outcomes are never guaranteed, and past performance does not guarantee future results. To explore the QOF route, request access or contact our team.
Frequently Asked Questions
Can I use a 1031 exchange to move stock into real estate?
No. A 1031 exchange under IRC §1031 defers gain only on an exchange of like-kind real property held for investment or business use. Stocks, bonds, and other securities are specifically excluded from §1031 treatment. So you cannot take a concentrated, appreciated stock position and “1031” it into an apartment building, rental, or any other real estate tax-deferred. If your goal is to get real estate exposure from a stock gain with tax advantages, the relevant tool is a Qualified Opportunity Fund (IRC §1400Z-2), not a 1031: you reinvest the realized capital gain into a QOF within 180 days to defer it, and many QOFs invest in real estate. Alternatively, if your shares are qualified small business stock (QSBS), you may be able to exclude the gain under IRC §1202 and then deploy the after-tax proceeds into real estate however you choose. The key takeaway is that 1031 is a real-estate-only tool; for stock, you need a different strategy. Confirm the right path with your CPA, since Baker 1031 does not provide tax advice.
How does a Qualified Opportunity Fund let me move a stock gain into real estate?
Under IRC §1400Z-2, when you sell appreciated stock and realize a capital gain, you have 180 days to invest that gain amount into a Qualified Opportunity Fund and defer the tax on it. Because many QOFs are real estate funds developing or improving property in designated Opportunity Zones, reinvesting your stock gain into a QOF gives you the real estate exposure you wanted while deferring the gain. An important detail: you only need to reinvest the realized gain, not the entire sale proceeds, to participate — which differs from a 1031, where you generally must reinvest all the equity and replace the debt. The signature benefit comes from holding the QOF for at least 10 years: the appreciation on the QOF investment itself can be excluded from tax entirely. Note that the original deferred stock gain is recognized later on a schedule set by law, and the program's specifics were updated by 2025 legislation (often called OZ 2.0) that made it permanent with a rolling deferral. Confirm the current timing rules and your eligibility with your CPA.
What is QSBS and how does it differ from a QOF?
QSBS — qualified small business stock under IRC §1202 — is original-issue stock in a qualifying C corporation that, if held for the required period and meeting the statute's tests, allows you to exclude a portion or potentially all of the gain on a sale from federal tax, subject to per-issuer dollar limits. That's an outright exclusion, not a deferral. A QOF, by contrast, defers a capital gain (from many sources, including non-QSBS stock) by reinvesting it, and offers tax-free appreciation on the fund after a 10-year hold. They solve different problems: if your concentrated position happens to be QSBS, you might exclude the gain entirely and then invest the after-tax cash in real estate freely; if it's regular appreciated stock, a QOF is the tax-advantaged way to defer the gain while gaining real estate exposure. QSBS eligibility is highly technical and fact-specific, so have your CPA confirm whether your shares qualify before relying on it. Neither tool is a 1031, which doesn't apply to stock at all.
Do I have to reinvest all the stock-sale proceeds, or just the gain?
For a Qualified Opportunity Fund, you only need to reinvest the realized capital gain to qualify for the OZ benefits — not the entire proceeds and not your original basis. For example, if you sell stock for $1,000,000 with a $400,000 gain, you can invest $400,000 into a QOF within 180 days to defer that gain and keep the remaining $600,000. This is a meaningful difference from a 1031 exchange (which doesn't apply to stock anyway): in a 1031, to fully defer you generally must reinvest all the net equity and replace any debt. The QOF's gain-only requirement gives equity holders flexibility. The 180-day clock for a direct stock sale generally starts on the sale date, so plan ahead to identify a suitable QOF before you sell. Confirm the timing and amounts with your CPA, because the rules have nuances depending on the type and source of the gain.
Are charitable strategies a good way to handle appreciated stock?
They can be, when you have charitable intent — but they are about giving, not about ending up owning real estate yourself. Donating appreciated stock directly to a charity or a donor-advised fund lets you avoid capital-gains tax on the donated shares and claim a charitable deduction for fair market value, subject to AGI limits. A charitable remainder trust (CRT) can sell appreciated stock inside the trust without immediate tax, pay you an income stream for a term or life, and leave the remainder to charity; a CRT can also hold or invest in real estate. These are accurate, legitimate options for a concentrated position, and they can complement a QOF or QSBS strategy. But if your primary goal is simply to convert a stock gain into personally owned real estate with tax advantages, a Qualified Opportunity Fund is usually the more direct route. Charitable deduction limits and trust structures are technical, so work with your CPA and an estate attorney before acting.
Glossary
- Qualified Opportunity Fund (QOF)
- A fund investing in Opportunity Zones; eligible for OZ tax benefits.
- IRC §1400Z-2
- The Opportunity Zone statute allowing capital-gain deferral and 10-year exclusion.
- 180-Day Rule
- The window to invest a realized gain into a QOF.
- 10-Year Exclusion
- Tax-free appreciation on a QOF held at least 10 years.
- 1031 Exchange
- A real-property-only tax-deferred swap (does not apply to stock).
- QSBS
- Qualified small business stock; potential gain exclusion under IRC §1202.
- Concentrated Stock
- A large single-position holding, often highly appreciated.
- Donor-Advised Fund (DAF)
- A charitable account that can receive appreciated stock.
- Charitable Remainder Trust (CRT)
- A trust that sells appreciated assets tax-deferred and pays income.
- Accredited Investor
- An investor meeting income or net-worth thresholds under SEC Rule 501.
Sources & References
- Cornell Legal Information Institute. 26 U.S. Code § 1400Z-2 — Special rules for capital gains invested in opportunity zones
- Cornell Legal Information Institute. 26 U.S. Code § 1031 — (limited to real property)
- Cornell Legal Information Institute. 26 U.S. Code § 1202 — Partial exclusion for gain from qualified small business stock
- IRS. Opportunity Zones Frequently Asked Questions
- Baker 1031 Investments. Data Center (QOF offering and structure detail)
Disclosures
This article is published by Baker 1031 Investments, LLC for general educational purposes for accredited investors and is not an offer to sell or a solicitation of an offer to buy any security, nor is it tax, legal, accounting, or investment advice or a recommendation. Any securities offering is made solely through a sponsor’s private placement memorandum (PPM) following a suitability determination. Securities offered through Aurora Securities, Inc. (ASI), member FINRA / SIPC; Baker 1031 Investments is independent of ASI.
Qualified Opportunity Funds are speculative, illiquid securities sold only to verified accredited investors and involve substantial risk, including possible loss of principal, lack of control, development and execution risk, and the risk that intended tax benefits are not realized. Opportunity Zone tax treatment depends on individual circumstances and on rules that have changed over time. Consult your own CPA and attorney before acting. Past performance does not guarantee future results.