Capital Gains Tax on a Home Sale: Plan Your Maryland Move

Latest Articles

Ready to Work with a Trusted DMV Realtor?

Whether you’re buying, selling, or exploring your options as a landlord, you don’t have to figure it out alone. Let’s talk about your goals, the current DMV market, and the smartest next steps for you.

Capital Gains Tax on Home Sale in Maryland: What Sellers Should Know

Capital gains tax on a home sale is based on taxable gain, not the check you receive at closing. Many Maryland sellers can exclude up to $250,000 of gain, or up to $500,000 for qualifying married couples filing jointly. Before pricing your next move, calculate adjusted basis, selling expenses, the home-sale exclusion, and any taxable amount left after it.

Start With Gain, Not the Sale Price

Selling for $700,000 does not mean you have a $700,000 taxable gain.

A practical starting formula is:

Amount realized from sale minus adjusted basis equals capital gain.

Your adjusted basis usually starts with what you paid for the home, then changes for certain purchase costs, capital improvements, depreciation, and other adjustments.

That matters because capital gains on a home sale are based on profit. Your mortgage payoff reduces the cash you keep, but it does not by itself determine the taxable gain.

The Primary Residence Exclusion Can Protect a Large Gain

For a qualifying primary residence and capital gains tax calculation, federal law may let you exclude up to $250,000 of gain. Certain married couples filing jointly may exclude up to $500,000.

The IRS Selling Your Home guidance generally looks for:

  • ownership for at least two of the five years before sale;
  • use as your main home for at least two of those five years;
  • no home-sale exclusion claimed on another sale during the prior two years;
  • no disqualifying issue such as certain recent like-kind exchanges.

The two years do not need to be consecutive.

A $700,000 Sale May Create a Much Smaller Gain

Here is a simplified capital gains on house sale example:

ItemExample
Original purchase price$300,000
Capital improvements$80,000
Simplified adjusted basis$380,000
Sale price$700,000
Illustrative selling expenses$45,000
Simplified amount realized$655,000
Simplified gain$275,000

A qualifying single seller might exclude up to $250,000, leaving about $25,000 potentially taxable. A qualifying married couple filing jointly might exclude the full $275,000.

Use actual records for your calculation.

Your Improvement Records Can Reduce the Taxable Gain

For capital gains tax on a house sale, old renovation records can be valuable. Certain capital improvements can increase adjusted basis, which may reduce taxable gain.

Examples may include:

  • a room addition;
  • a full roof replacement;
  • a new HVAC system;
  • major kitchen remodeling;
  • new windows;
  • substantial electrical or plumbing upgrades.

Routine repairs are different. Painting or fixing a small leak generally does not become a capital improvement simply because the work happened before selling.

Long-time Maryland homeowners should gather invoices before listing, not months after closing.

Seller Net and Taxable Gain Are Two Different Numbers

This distinction matters when calculating capital gains on the sale of a home.

Your mortgage or HELOC payoff reduces what reaches your bank account. It is different from the tax calculation.

Keep these two numbers separate:

  • Seller net proceeds: sale price minus debt and transaction costs.
  • Taxable capital gain: amount realized minus adjusted basis, then adjusted for available exclusions.

Use the Maryland seller closing-cost guide to estimate the first number. Use a CPA or tax professional to calculate the second.

Maryland Has a New Capital Gains Rule

Maryland changed its capital gains rules beginning in 2025. Individuals with federal adjusted gross income above $350,000 can face an additional 2% Maryland tax on certain net capital gains.

There is a valuable primary-home exception.

The Comptroller of Maryland’s capital gains guidance says the additional 2% tax does not apply to gain from a qualifying primary residence when the dwelling meets Maryland’s requirements and sells for less than $1.5 million.

That does not make every capital gains tax on a home sale zero. Federally taxable gain can still affect Maryland income tax. The rule specifically removes qualifying home sales from the newer additional 2% tax.

Rental Use Can Change the Calculation

Capital gains tax on real estate gets more complicated when your former primary home became a rental.

You may still satisfy the ownership and use tests. However, depreciation and periods of nonqualified use can change the result.

If you claimed depreciation, part of the gain may receive separate tax treatment and may not be sheltered by the capital gains exclusion on primary residence.

Bring depreciation schedules and prior tax returns to a tax professional before deciding how much sale money is available for your next purchase.

Second Homes and Investment Properties Need Different Math

The capital gains exemption for primary residence does not automatically apply to every property.

Be careful using primary-home calculations for:

  • long-term rentals;
  • second homes;
  • vacation properties;
  • house flips;
  • inherited property.

Investment property can involve depreciation recapture or 1031 exchange rules. Inherited property starts with different basis rules.

If the home was inherited, use the site’s inherited-property tax basis guide instead of applying this primary-residence article.

Price Your Next Move With After-Tax Cash

The biggest seller mistake is treating equity as spendable cash.

A better next-move calculation includes:

  • realistic market value;
  • mortgage and HELOC payoff;
  • seller closing costs;
  • adjusted basis;
  • estimated capital gains on selling a house;
  • available home-sale exclusion;
  • possible federal and Maryland tax;
  • cash reserve after closing.

If a Bowie or Upper Marlboro home has appreciated sharply, calculate possible capital gains tax on sale of house before committing the expected proceeds to another down payment.

Start with a realistic Maryland home value. The listing price should still come from comparable sales, condition, competition, and buyer demand. Your personal tax bill does not increase market value.

Nigerian and African Sellers Should Check Tax Residency Early

For Nigerian and other African homeowners in Maryland, nationality alone does not decide capital gains tax on sale of personal residence.

Tax residency, ownership, use, filing status, and property type matter.

Get tax advice early if you:

  • live partly outside the United States;
  • plan to relocate to Nigeria;
  • converted the Maryland home into a rental;
  • have a spouse living abroad;
  • may qualify as a nonresident seller.

Use the after-tax cash you reasonably expect, not headline equity, when planning the next move.

Know the Tax Question Before You Set the Next Budget

At The Eze Way, I help Prince George’s County and DMV sellers with the real estate side of the equation: current value, preparation, offer terms, seller net, and closing strategy.

Before listing, know three numbers:

  1. what the home can realistically sell for;
  2. what you may keep after debt and selling costs;
  3. whether a tax professional expects taxable gain after the available exclusion.

That gives you a safer number for your next purchase, relocation, or investment plan.

If you are preparing to sell, discuss your Maryland sale with Eze before building your next move around gross equity.

Common Questions

When do you pay capital gains tax on property?

Any taxable gain is generally reported for the tax year in which the property is sold. Estimated payments may also apply depending on your situation.

Is the $250,000 exclusion based on sale price?

No. The exclusion applies to qualifying gain, not the total sale price or the cash you receive at closing.

Do I have to buy another home to avoid capital gains tax?

No. The federal home-sale exclusion does not require you to reinvest the proceeds into another property.

What if I sold my house after renting it out?

You may still qualify for an exclusion, but depreciation and nonqualified use can change how much gain remains taxable.

Can a loss on my primary home reduce my taxes?

Generally, no. The IRS does not allow a deduction for a loss on the sale of a personal-use main home.