Short answer: a home office or home business does not change who owns the house, but it can change the numbers around it. If part of the home was depreciated for business, the home-sale tax exclusion does not cover gain equal to that depreciation after May 6, 1997, and a separate structure used for business can be taxed as its own property. When one spouse keeps both the house and the business, the two values are usually weighed against each other, so the business needs its own valuation. That valuation is a separate professional job, not something this guide or a real estate agent does.
Why does a home business matter for the house?
Three things tie the business to the house in a divorce:
- Tax on a later saleDepreciation taken for a home office or business space can make part of the gain taxable, even inside the exclusion
- Who keeps whatA spouse who keeps the house and the business may owe the other spouse for both
- City rulesA business run from a home usually sits under city home occupation rules tied to the people living there
How does a home office change the tax when the house sells?
The basic exclusion ($250,000, or $500,000 for some married couples filing jointly) is in capital gains pointers for a divorcing homeowner. A home office adds one limit. IRS Publication 523 (2025) says you can't exclude "the part of your gain equal to any depreciation allowed or allowable as a deduction for periods after May 6, 1997."
Three details in the IRS text often surprise people:
- "Allowable" counts, not only what was claimed. Publication 587 says the rule covers depreciation "you deducted (or could have deducted)." If no depreciation was claimed, Publication 523 says basis is still reduced by the amount that could have been deducted. A CPA can say whether records showing a lower amount help.
- The simplified method is different. Publication 587 says allowable depreciation for the office is "deemed to be zero" for a year the simplified home office method was used.
- The taxed part has its own label. In the IRS example, an attorney with a law office inside the house claimed $2,000 of depreciation and "must recognize $2,000 of the gain as unrecaptured section 1250 gain." A CPA figures the rate.
Does it matter where in the property the business was?
Yes. The IRS treats space inside the home differently from space apart from it.
| Where the business was | How Pub 523 and Pub 587 usually treat it |
|---|---|
| A room inside the home (spare bedroom, attic office) | No need to split the gain between home and business. Gain equal to depreciation after May 6, 1997 is still not excluded. |
| A separate part of the property (IRS examples: a stable, a working farm, the other unit of a duplex, a store below an apartment) | Gain on the separate part generally can't be excluded unless that part also meets the 2-out-of-5-years ownership and use test. The sale may be treated as two properties, with the business part reported on Form 4797. |
Whether a detached studio, shop or converted garage counts as "within the living area" or "separate" is a CPA question that turns on the facts and the tax returns.
What happens to that tax history if one spouse keeps the house?
A transfer of the home to a spouse or ex-spouse as part of a divorce settlement generally has no gain or loss, per Publication 523. The tax history does not disappear, though. Publication 504 says the receiving spouse's basis "is the same as your spouse's adjusted basis," and depreciation lowers adjusted basis. So the spouse who keeps the house may carry the office's depreciation into a future sale. How that plays out, and how depreciation on a joint return is shared, is for a CPA. The house file for a CPA or forensic accountant lists the records to keep.
Who keeps the house when one spouse keeps the business?
California Family Code 2550 says the court divides the community estate equally, unless the spouses agree in writing or in open court. Family Code 2601 lets a court award an asset to one spouse "on such conditions as the court deems proper to effect a substantially equal division." In practice, that is how an offset is commonly framed: one spouse keeps the business, and the other spouse keeps the house or other property of similar value, or a payment evens it out.
- 1Value the house (appraisal or agreed value)
- 2Value the business (separate appraiser or forensic accountant)
- 3Subtract loans and other debts on each
- 4Compare each spouse's share
- 5Even it out with other assets or a payment
Points that often come up:
- The business value is the hard part. A home appraisal does not value the business, and without that value the offset has nothing to weigh against.
- Valuation dates. Family Code 2552 values assets near the time of trial, with an exception for good cause. See date of separation vs valuation date.
- Cash flow. A spouse keeping the house usually still has to refinance or qualify on their own. Buying out your spouse and qualifying alone covers how lenders look at that.
- Tax is not equal across assets. A house with depreciation history, a business and a retirement account can carry different future taxes. An attorney and CPA can say whether that matters in a given case.
How do city home occupation rules come in?
Cities regulate businesses run from homes, often through a home occupation permit. As one Riverside County example, a February 19, 2026 Jurupa Valley City Council staff report described its code at the time: a home occupation must be incidental to living there, with no customers visiting and no employees other than the resident, except family daycare. The report proposed a permit process, city business registration, limits on storage, one or two non-resident employees depending on lot size, and no signs. We have not confirmed whether those changes were adopted. Rules differ by city.
These rules usually tie the business to the people who live in the home. If the spouse who runs the business moves out, or the house is sold, the business use generally does not travel with the house.
Common mistakes
- Assuming the home-sale exclusion covers all gain when an office was depreciated.
- Assuming that never claiming depreciation means there is nothing to count.
- Treating a detached studio or rented unit like a spare-room office.
- Agreeing to trade the house for the business before the business has a value.
- Not passing the house's tax records to the spouse who keeps it.
Papers to gather
What a real estate agent can and can't do here
An agent can give a market value opinion on the house, explain how a detached workspace may affect buyer interest, and show rough sale numbers with the net proceeds estimator. An agent can't value the business, figure depreciation or tax, or say what a fair offset is.
Ask a professional
- CPA: depreciation history, inside vs separate space, basis after transfer. See also taxes on the house around a divorce and, if one spouse moved out, capital gains when one spouse moved out.
- Business appraiser or forensic accountant: the business value.
- Family-law attorney: whether the business is community property and how an offset is written into the judgment.
- City planning department: home occupation permits.