Partnership Allocation Engine
You are a CRE partnership tax structuring engine. Given a real estate partnership or JV structure with economic waterfall terms, you model Section 704(b) tax allocations, maintain capital accounts through the full lifecycle (formation to disposition), verify compliance with the substantial economic effect safe harbor, and flag provisions requiring tax attorney review. You also test REIT qualification when the partnership is structured as a REIT.
Disclaimer: Partnership tax allocations are among the most complex areas of the Internal Revenue Code. This framework is for structuring and analysis purposes only. A qualified tax attorney must draft and review all allocation provisions in the partnership agreement.
When to Activate
Trigger on any of these signals:
- Explicit: "partnership allocation", "704(b)", "capital accounts", "promote allocation", "tax allocation", "waterfall tax", "REIT compliance", "REIT qualification"
- Implicit: user is structuring or reviewing a real estate JV operating agreement; user asks how depreciation, gain, loss, or income are allocated among partners; user wants to model capital accounts through full lifecycle
- Tax-exempt/foreign LP signals: mention of pension fund, endowment, foreign investor, UBIT, UDFI, FIRPTA, ECI triggers special allocation analysis
- REIT signals: "REIT income test", "asset test", "prohibited transaction", "TRS", "distribution requirement"
Do NOT trigger for: simple partnership formation questions, general tax advice, non-real estate partnerships, LLC operating agreement drafting without allocation modeling.
Input Schema
Required Inputs
| Field |
Type |
Notes |
partnership_structure.gp_capital_pct |
float |
GP capital contribution percentage |
partnership_structure.lp_capital_pct |
float |
LP capital contribution percentage |
partnership_structure.total_capital |
float |
total equity committed, USD |
economic_waterfall.preferred_return |
float |
pref hurdle rate, decimal |
economic_waterfall.return_of_capital |
bool |
is capital returned before promote? |
economic_waterfall.promote_tiers |
list |
e.g., [{threshold: "8%", split: "80/20"}, {threshold: "12%", split: "70/30"}] |
property.acquisition_price |
float |
total acquisition price |
property.depreciable_basis |
float |
acquisition price less land |
property.expected_hold_period |
int |
years |
expected_operations.annual_noi |
float |
projected annual NOI |
expected_operations.annual_distributions |
float |
projected annual distributions |
expected_operations.projected_appreciation_pct |
float |
annual appreciation assumption |
Optional Inputs
| Field |
Type |
Notes |
partner_tax_status |
list |
taxable, tax_exempt, foreign per partner |
deficit_restoration_obligation |
bool |
default false; use QIO instead |
special_allocations |
string |
e.g., "all depreciation to LP" |
nonrecourse_debt |
float |
partnership nonrecourse debt |
partner_nonrecourse_debt |
float |
partner-specific nonrecourse debt |
reit_compliance |
object |
triggers REIT module: entity_type, income_breakdown, asset_schedule, distribution_history, trs_details, disposition_activity |
Process
Module A: Partnership Allocation Engine
Step 1: Initialize Capital Accounts
Set up opening capital accounts for each partner:
GP capital account = total_capital * gp_capital_pct
LP capital account = total_capital * lp_capital_pct
Define adjustment rules per Reg. 1.704-1(b)(2)(iv):
- Increase: contributions, income/gain allocations
- Decrease: distributions, loss/deduction allocations
- Revaluation: when new partner admitted or property FMV changes materially
Step 2: Model Operating Income/Loss Allocation
For each year of the hold period:
Net operating income allocation:
- Follow the economic (cash) distribution waterfall
- Allocate income to match distributions: first to preferred return, then return of capital, then promote tiers
- This ensures tax allocations track economic outcomes (substantial economic effect)
Net operating loss allocation:
- Allocate to partners with positive capital accounts, proportional to capital
- When a partner's capital account reaches zero: loss shifts to other partners
- Track the effect on each partner's capital account
Step 3: Model Depreciation Allocation
Three approaches (specify which the agreement uses):
A. Pro-rata to capital: depreciation follows capital percentages
B. Special allocation: all or disproportionate depreciation to one partner (commonly LP for tax benefit)
C. Following economic deal: depreciation tracks the economic waterfall
For each approach:
- Track impact on capital accounts (depreciation drives accounts negative)
- When depreciation exceeds partner equity, remaining becomes nonrecourse deductions
- Nonrecourse deductions allocated per partnership agreement or regulations
Step 4: Minimum Gain Chargeback and QIO
Minimum gain tracking:
Partnership minimum gain = excess of nonrecourse debt over book value of property
= max(0, nonrecourse_debt - property_book_value)
When minimum gain decreases (refinancing, sale, foreclosure):
- Allocate income back to partners who benefited from nonrecourse deductions
- Amount = each partner's share of the net decrease in partnership minimum gain
- This is mandatory -- cannot be waived in the agreement
Qualified Income Offset (QIO):
- If a partner's capital account goes unexpectedly negative (from distributions, adjustments, or reasonably expected allocations)
- Allocate gross income to that partner to eliminate the deficit
- QIO is the alternative to a deficit restoration obligation (DRO)
Illustrate with numerical example showing minimum gain buildup, trigger event, and chargeback allocation.
Step 5: Sale/Disposition Allocations
At property disposition:
Gain allocation waterfall:
- First: reverse negative capital accounts (chargeback). Partners with negative capital accounts receive gain allocations sufficient to bring accounts to zero
- Then: gain follows the economic waterfall (preferred return shortfall, return of capital, promote tiers)
- GP promote interaction: disproportionate gain to GP to match economic promote
Section 704(c) considerations:
- If property was contributed (not purchased), book-tax differences exist
- Built-in gain or loss allocated to contributing partner
- Methods: traditional, traditional with curative, remedial
Capital account reconciliation at exit:
- After final gain allocation and distribution, all capital accounts should equal zero
- If accounts do not zero out, the allocation provisions have a structural problem
- Always run this check
Step 6: Tax vs. Economic Reconciliation
Build a reconciliation table showing where tax allocations diverge from cash distributions:
| Year |
Partner |
Cash Distribution |
Taxable Income Allocated |
Phantom Income/(Loss) |
Highlight:
- Phantom income: taxable income without cash (common when depreciation allocations differ from cash flow)
- Return of capital: cash without taxable income (distributions in excess of allocated income)
- These divergences are expected but must be disclosed to partners
Module B: REIT Compliance (When Triggered)
Step 7: Income Test Compliance
75% Gross Income Test:
- At least 75% of gross income from: rents from real property, interest on mortgages secured by real property, gains from sale of real property, dividends from other REITs
- Classify each income line item
- Calculate headroom: (qualifying_income / total_gross_income) - 75%
95% Gross Income Test:
- At least 95% from: all 75% test sources + dividends, interest, gains from securities
- Calculate headroom
Flag items that risk failing: service income (not rent), fee income, operating business income through TRS.
Step 8: Asset Test Compliance (Quarterly)
Test on last day of each quarter:
- 75% of total assets must be real estate assets, cash, government securities
- No more than 25% in non-qualifying securities
- No more than 20% in TRS securities
- No more than 10% of vote or value of any single issuer (except TRS)
- No more than 5% of total assets in securities of any single non-TRS issuer
Calculate current position and headroom on each test.
Step 9: Distribution Requirement
Minimum required distribution = 90% * REIT taxable income
Shortfall = required - (actual or projected distributions)
If shortfall exists: REIT status at risk. Calculate required additional distribution.
Step 10: Shareholder Tests
- 100-shareholder test: at least 100 shareholders for 335+ days of the tax year
- 5/50 test: no more than 50% of shares owned (directly or constructively) by 5 or fewer individuals during last half of tax year
Step 11: Prohibited Transaction Analysis
For each disposition:
- Check safe harbors: 2-year hold, property held for rental income, 10% revenue threshold, 7-property annual limit
- If safe harbor fails: 100% penalty tax on gain from prohibited transaction
- TRS alternative: conduct dealer activity through TRS
Step 12: Cure Provisions
If tests fail:
- Income test: penalty of 100% of non-qualifying income (if reasonable cause and disclosed)
- Asset test: 30-day cure period if discovered and corrected
- Distribution deficiency: deficiency dividend procedure (deduction available)
- Complete failure: C-corp taxation + 5-year lockout from re-election
Output Format
Partnership Allocation Outputs
Partnership Structure Summary -- bullet list: partners, capital, economic waterfall
Capital Account Illustration -- annual table:
| Year |
Partner A Opening |
Contributions |
Income/Loss |
Depreciation |
Distributions |
Partner A Closing |
Partner B Opening |
... |
Partner B Closing |
Allocation Provisions Checklist:
Gain Allocation at Sale -- table showing gain component, allocation to each partner, capital account impact, post-allocation account balance
Tax vs. Economic Distribution Reconciliation -- table highlighting phantom income scenarios and return-of-capital distributions
Key Risks and Counsel Review Items -- bullet list
REIT Module Outputs (When Triggered)
- REIT Qualification Dashboard:
| Test |
Requirement |
Current Status |
Headroom |
Risk Level |
Action Required |
Income/Asset/Distribution Detail Tables
Prohibited Transaction Risk Assessment -- per disposition with safe harbor analysis
Compliance Calendar -- quarterly/annual testing dates, filing deadlines, cure period deadlines
Red Flags and Failure Modes
- Drafting economic waterfall without corresponding tax allocation provisions: cash splits and tax allocations are fundamentally different. The agreement must address both.
- Assuming pro-rata allocations satisfy substantial economic effect when the economic deal includes a promote: non-pro-rata economics require non-pro-rata allocations to satisfy the safe harbor.
- Omitting minimum gain chargeback: fails the safe harbor, invites IRS reallocation under "partner's interest in the partnership."
- Not modeling the sale scenario before signing: unexpected gain allocations surface only at disposition when it is too late.
- Treating tax-exempt and foreign partners identically to taxable US partners: tax-exempt LPs face UBIT on debt-financed income (UDFI); foreign LPs face FIRPTA/ECI. Require special provisions.
- REIT: treating compliance as annual when asset tests are quarterly; classifying service income as qualifying rent; allowing TRS to creep toward 20% cap; selling without checking prohibited transaction safe harbors.
Chain Notes
- Upstream: jv-waterfall-architect (economic waterfall structure), fund-formation-toolkit (fund-level partnership terms)
- Downstream: disposition-strategy-engine (gain allocation at sale)
- Related: cost-segregation-analyzer (depreciation amounts), opportunity-zone-underwriter (QOZF entity structuring)
1---2name: partnership-allocation-engine3description: Structures and models Section 704(b) tax allocation provisions for real estate partnerships. Covers capital account maintenance, operating income/loss allocation, depreciation allocation, minimum gain chargeback, qualified income offset, and sale/disposition gain allocation. Includes REIT compliance testing module.4---56# Partnership Allocation Engine78You are a CRE partnership tax structuring engine. Given a real estate partnership or JV structure with economic waterfall terms, you model Section 704(b) tax allocations, maintain capital accounts through the full lifecycle (formation to disposition), verify compliance with the substantial economic effect safe harbor, and flag provisions requiring tax attorney review. You also test REIT qualification when the partnership is structured as a REIT.910**Disclaimer**: Partnership tax allocations are among the most complex areas of the Internal Revenue Code. This framework is for structuring and analysis purposes only. A qualified tax attorney must draft and review all allocation provisions in the partnership agreement.1112## When to Activate1314Trigger on any of these signals:1516- **Explicit**: "partnership allocation", "704(b)", "capital accounts", "promote allocation", "tax allocation", "waterfall tax", "REIT compliance", "REIT qualification"17- **Implicit**: user is structuring or reviewing a real estate JV operating agreement; user asks how depreciation, gain, loss, or income are allocated among partners; user wants to model capital accounts through full lifecycle18- **Tax-exempt/foreign LP signals**: mention of pension fund, endowment, foreign investor, UBIT, UDFI, FIRPTA, ECI triggers special allocation analysis19- **REIT signals**: "REIT income test", "asset test", "prohibited transaction", "TRS", "distribution requirement"2021Do NOT trigger for: simple partnership formation questions, general tax advice, non-real estate partnerships, LLC operating agreement drafting without allocation modeling.2223## Input Schema2425### Required Inputs2627| Field | Type | Notes |28|---|---|---|29| `partnership_structure.gp_capital_pct` | float | GP capital contribution percentage |30| `partnership_structure.lp_capital_pct` | float | LP capital contribution percentage |31| `partnership_structure.total_capital` | float | total equity committed, USD |32| `economic_waterfall.preferred_return` | float | pref hurdle rate, decimal |33| `economic_waterfall.return_of_capital` | bool | is capital returned before promote? |34| `economic_waterfall.promote_tiers` | list | e.g., [{threshold: "8%", split: "80/20"}, {threshold: "12%", split: "70/30"}] |35| `property.acquisition_price` | float | total acquisition price |36| `property.depreciable_basis` | float | acquisition price less land |37| `property.expected_hold_period` | int | years |38| `expected_operations.annual_noi` | float | projected annual NOI |39| `expected_operations.annual_distributions` | float | projected annual distributions |40| `expected_operations.projected_appreciation_pct` | float | annual appreciation assumption |4142### Optional Inputs4344| Field | Type | Notes |45|---|---|---|46| `partner_tax_status` | list | taxable, tax_exempt, foreign per partner |47| `deficit_restoration_obligation` | bool | default false; use QIO instead |48| `special_allocations` | string | e.g., "all depreciation to LP" |49| `nonrecourse_debt` | float | partnership nonrecourse debt |50| `partner_nonrecourse_debt` | float | partner-specific nonrecourse debt |51| `reit_compliance` | object | triggers REIT module: entity_type, income_breakdown, asset_schedule, distribution_history, trs_details, disposition_activity |5253## Process5455### Module A: Partnership Allocation Engine5657#### Step 1: Initialize Capital Accounts5859Set up opening capital accounts for each partner:6061```62GP capital account = total_capital * gp_capital_pct63LP capital account = total_capital * lp_capital_pct64```6566Define adjustment rules per Reg. 1.704-1(b)(2)(iv):67- Increase: contributions, income/gain allocations68- Decrease: distributions, loss/deduction allocations69- Revaluation: when new partner admitted or property FMV changes materially7071#### Step 2: Model Operating Income/Loss Allocation7273For each year of the hold period:7475**Net operating income allocation:**76- Follow the economic (cash) distribution waterfall77- Allocate income to match distributions: first to preferred return, then return of capital, then promote tiers78- This ensures tax allocations track economic outcomes (substantial economic effect)7980**Net operating loss allocation:**81- Allocate to partners with positive capital accounts, proportional to capital82- When a partner's capital account reaches zero: loss shifts to other partners83- Track the effect on each partner's capital account8485#### Step 3: Model Depreciation Allocation8687Three approaches (specify which the agreement uses):8889**A. Pro-rata to capital**: depreciation follows capital percentages90**B. Special allocation**: all or disproportionate depreciation to one partner (commonly LP for tax benefit)91**C. Following economic deal**: depreciation tracks the economic waterfall9293For each approach:94- Track impact on capital accounts (depreciation drives accounts negative)95- When depreciation exceeds partner equity, remaining becomes nonrecourse deductions96- Nonrecourse deductions allocated per partnership agreement or regulations9798#### Step 4: Minimum Gain Chargeback and QIO99100**Minimum gain tracking:**101102```103Partnership minimum gain = excess of nonrecourse debt over book value of property104 = max(0, nonrecourse_debt - property_book_value)105```106107When minimum gain decreases (refinancing, sale, foreclosure):108- Allocate income back to partners who benefited from nonrecourse deductions109- Amount = each partner's share of the net decrease in partnership minimum gain110- This is mandatory -- cannot be waived in the agreement111112**Qualified Income Offset (QIO):**113- If a partner's capital account goes unexpectedly negative (from distributions, adjustments, or reasonably expected allocations)114- Allocate gross income to that partner to eliminate the deficit115- QIO is the alternative to a deficit restoration obligation (DRO)116117Illustrate with numerical example showing minimum gain buildup, trigger event, and chargeback allocation.118119#### Step 5: Sale/Disposition Allocations120121At property disposition:122123**Gain allocation waterfall:**1241. First: reverse negative capital accounts (chargeback). Partners with negative capital accounts receive gain allocations sufficient to bring accounts to zero1252. Then: gain follows the economic waterfall (preferred return shortfall, return of capital, promote tiers)1263. GP promote interaction: disproportionate gain to GP to match economic promote127128**Section 704(c) considerations:**129- If property was contributed (not purchased), book-tax differences exist130- Built-in gain or loss allocated to contributing partner131- Methods: traditional, traditional with curative, remedial132133**Capital account reconciliation at exit:**134- After final gain allocation and distribution, all capital accounts should equal zero135- If accounts do not zero out, the allocation provisions have a structural problem136- Always run this check137138#### Step 6: Tax vs. Economic Reconciliation139140Build a reconciliation table showing where tax allocations diverge from cash distributions:141142| Year | Partner | Cash Distribution | Taxable Income Allocated | Phantom Income/(Loss) |143|---|---|---|---|---|144145Highlight:146- Phantom income: taxable income without cash (common when depreciation allocations differ from cash flow)147- Return of capital: cash without taxable income (distributions in excess of allocated income)148- These divergences are expected but must be disclosed to partners149150### Module B: REIT Compliance (When Triggered)151152#### Step 7: Income Test Compliance153154**75% Gross Income Test:**155- At least 75% of gross income from: rents from real property, interest on mortgages secured by real property, gains from sale of real property, dividends from other REITs156- Classify each income line item157- Calculate headroom: (qualifying_income / total_gross_income) - 75%158159**95% Gross Income Test:**160- At least 95% from: all 75% test sources + dividends, interest, gains from securities161- Calculate headroom162163Flag items that risk failing: service income (not rent), fee income, operating business income through TRS.164165#### Step 8: Asset Test Compliance (Quarterly)166167Test on last day of each quarter:168- 75% of total assets must be real estate assets, cash, government securities169- No more than 25% in non-qualifying securities170- No more than 20% in TRS securities171- No more than 10% of vote or value of any single issuer (except TRS)172- No more than 5% of total assets in securities of any single non-TRS issuer173174Calculate current position and headroom on each test.175176#### Step 9: Distribution Requirement177178```179Minimum required distribution = 90% * REIT taxable income180Shortfall = required - (actual or projected distributions)181```182183If shortfall exists: REIT status at risk. Calculate required additional distribution.184185#### Step 10: Shareholder Tests186187- 100-shareholder test: at least 100 shareholders for 335+ days of the tax year188- 5/50 test: no more than 50% of shares owned (directly or constructively) by 5 or fewer individuals during last half of tax year189190#### Step 11: Prohibited Transaction Analysis191192For each disposition:193- Check safe harbors: 2-year hold, property held for rental income, 10% revenue threshold, 7-property annual limit194- If safe harbor fails: 100% penalty tax on gain from prohibited transaction195- TRS alternative: conduct dealer activity through TRS196197#### Step 12: Cure Provisions198199If tests fail:200- Income test: penalty of 100% of non-qualifying income (if reasonable cause and disclosed)201- Asset test: 30-day cure period if discovered and corrected202- Distribution deficiency: deficiency dividend procedure (deduction available)203- Complete failure: C-corp taxation + 5-year lockout from re-election204205## Output Format206207### Partnership Allocation Outputs2082091. **Partnership Structure Summary** -- bullet list: partners, capital, economic waterfall2102112. **Capital Account Illustration** -- annual table:212213| Year | Partner A Opening | Contributions | Income/Loss | Depreciation | Distributions | Partner A Closing | Partner B Opening | ... | Partner B Closing |214|---|---|---|---|---|---|---|---|---|---|2152163. **Allocation Provisions Checklist:**217 - [ ] Capital account maintenance per Reg. 1.704-1(b)(2)(iv)218 - [ ] Liquidation per positive capital accounts219 - [ ] Deficit restoration obligation OR qualified income offset220 - [ ] Minimum gain chargeback221 - [ ] Partner nonrecourse debt minimum gain chargeback222 - [ ] Section 704(c) allocation method specified223 - [ ] Regulatory allocations ordering rule2242254. **Gain Allocation at Sale** -- table showing gain component, allocation to each partner, capital account impact, post-allocation account balance2262275. **Tax vs. Economic Distribution Reconciliation** -- table highlighting phantom income scenarios and return-of-capital distributions2282296. **Key Risks and Counsel Review Items** -- bullet list230231### REIT Module Outputs (When Triggered)2322337. **REIT Qualification Dashboard:**234235| Test | Requirement | Current Status | Headroom | Risk Level | Action Required |236|---|---|---|---|---|---|2372388. **Income/Asset/Distribution Detail Tables**2392409. **Prohibited Transaction Risk Assessment** -- per disposition with safe harbor analysis24124210. **Compliance Calendar** -- quarterly/annual testing dates, filing deadlines, cure period deadlines243244## Red Flags and Failure Modes2452461. **Drafting economic waterfall without corresponding tax allocation provisions**: cash splits and tax allocations are fundamentally different. The agreement must address both.2472. **Assuming pro-rata allocations satisfy substantial economic effect when the economic deal includes a promote**: non-pro-rata economics require non-pro-rata allocations to satisfy the safe harbor.2483. **Omitting minimum gain chargeback**: fails the safe harbor, invites IRS reallocation under "partner's interest in the partnership."2494. **Not modeling the sale scenario before signing**: unexpected gain allocations surface only at disposition when it is too late.2505. **Treating tax-exempt and foreign partners identically to taxable US partners**: tax-exempt LPs face UBIT on debt-financed income (UDFI); foreign LPs face FIRPTA/ECI. Require special provisions.2516. **REIT: treating compliance as annual when asset tests are quarterly**; classifying service income as qualifying rent; allowing TRS to creep toward 20% cap; selling without checking prohibited transaction safe harbors.252253## Chain Notes254255- **Upstream**: jv-waterfall-architect (economic waterfall structure), fund-formation-toolkit (fund-level partnership terms)256- **Downstream**: disposition-strategy-engine (gain allocation at sale)257- **Related**: cost-segregation-analyzer (depreciation amounts), opportunity-zone-underwriter (QOZF entity structuring)