How Do You Calculate Gain on the Sale of a Home?

By JC Pacific Corp Published 2026-09-01 Last professionally reviewed: September 2026

To estimate gain, begin with the amount realized from the sale and subtract the property's adjusted basis. This calculation is different from determining how much cash the seller receives at closing.

Step 1: Determine the amount realized

The amount realized generally begins with the sale price and is adjusted for applicable selling expenses and other transaction items. Potential selling expenses may include qualifying:

  • Brokerage compensation
  • Advertising expenses
  • Legal fees
  • Escrow-related costs
  • Title-related seller charges
  • Transfer taxes
  • Other costs directly connected to the sale

Ask a tax professional which expenses qualify.

Step 2: Determine adjusted basis

Adjusted basis may begin with the property's original cost and then change because of:

  • Certain purchase expenses
  • Capital improvements
  • Insurance reimbursements
  • Casualty losses
  • Depreciation
  • Energy credits or subsidies
  • Prior tax elections
  • Rental or business use

Step 3: Evaluate exclusions and their taxable portions

After gain is calculated, determine whether any principal-residence exclusion or other tax provision applies.

Frequently Asked Questions

Can I use my closing statement to calculate everything?

It is important, but older purchase documents, improvement records, and depreciation schedules may also be necessary.

What if I cannot find my records?

A tax professional can explain acceptable ways to reconstruct records. Do not invent numbers.

Is an online calculator enough?

A calculator can educate, but it cannot reliably account for every seller's ownership and tax history.

Educational information

This simplified explanation is not a tax calculation for any specific seller.

Create a property tax file before listing so missing documentation can be addressed early.

Wire-fraud warning

Always verify wire instructions by telephone using a known, independently confirmed number. Never rely on email instructions alone. If you suspect fraud, contact your bank, escrow, your agent and law enforcement immediately.

Read our wire-fraud protection guide

Put this guide to work

The next step is a conversation with a local agent.

JC Pacific Corp is an Irvine-based Southern California brokerage helping buyers navigate offers, escrow, and financing. Tell us what you are looking for and we will point you to current options across the region.

A note on legal advice: These guides provide general, educational information about California real estate practice. They are not legal advice and do not create an attorney-client relationship. Mortgage information is general education, not individualized lending, tax or legal guidance. For advice about your specific offer, contract, closing or financing, consult a qualified California real estate attorney and a qualified mortgage professional.

A note on these tax guides: The California home-sale tax articles provide general educational information and have been reviewed by a qualified California tax professional. They are not tax, legal, accounting, financial, or insurance advice, and JC Pacific Corp and its real estate professionals are not tax advisers. Sale price, equity, net proceeds, taxable gain, withholding, and final tax are different numbers, and withholding is a collection mechanism, not a determination of final tax liability. Verify current IRS and California Franchise Tax Board forms and rules with a qualified tax professional before making decisions.