eXp Realty Kathleen Militello, Realtor® The Militello Team COASTAL HOMES & LIVING

Buyer & Seller Tips

Will I Owe Capital Gains Tax When I Sell My North Shore Home?

By Kathleen Militello · Published August 7, 2026 · Updated October 2026 · 12 min read

The front exterior of the home at 5B Plover Way in Gloucester, with a covered porch and white picket fence

If you have owned your North Shore home for more than a few years, there is a good chance it has appreciated significantly. With median home prices on the North Shore above $805,000, many homeowners are sitting on substantial equity. But when you sell, how much of that profit do you actually keep? Understanding capital gains tax before you list can help you plan and potentially save tens of thousands of dollars.

Key Takeaways

  • If you have owned and lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit if single or $500,000 if married filing jointly. Most North Shore homeowners owe zero capital gains tax when they sell.

  • You only owe tax on profit above those amounts. Your profit is calculated as the sale price minus your original purchase price, minus the cost of permanent improvements, minus selling costs like agent commissions and closing fees.

  • This article provides general information about capital gains tax for educational purposes. I am a real estate professional, not a tax attorney or CPA. Always consult a qualified tax professional about your specific situation before making decisions based on tax implications.

The Short Version

If you have owned and lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit if single or $500,000 if married filing jointly. Most North Shore homeowners owe zero capital gains tax when they sell.

You only owe tax on profit above those amounts. Your profit is calculated as the sale price minus your original purchase price, minus the cost of permanent improvements, minus selling costs like agent commissions and closing fees.

This article provides general information about capital gains tax for educational purposes. I am a real estate professional, not a tax attorney or CPA. Always consult a qualified tax professional about your specific situation before making decisions based on tax implications.

The Primary Residence Exclusion: Your Biggest Tax Break

The single most important capital gains rule for homeowners is the Section 121 primary residence exclusion. If you have owned and lived in the home as your primary residence for at least 2 of the 5 years immediately before the sale, you can exclude up to:

Exclusion for single filers

$250,000

Exclusion for married filing jointly

$500,000

This means if you are married and your profit is $500,000 or less, you owe no federal capital gains tax on the sale. If your profit exceeds these amounts, you owe capital gains tax only on the excess.

How to Calculate Your Capital Gain

Your capital gain is not simply the sale price minus the purchase price. The formula is:

Capital Gain = Selling Price - Cost Basis - Selling Costs

Your cost basis is the original purchase price plus the cost of any permanent improvements you made over the years. Your selling costs include agent commissions, closing costs, and certain fees associated with the sale.

Example: A North Shore Home Sale

Let's say you bought a home in Ipswich in 2015:

ItemAmount
Purchase price (2015) $420,000
Kitchen renovation (2018) +$45,000
New roof (2020) +$15,000
Bathroom addition (2022) +$30,000
Cost Basis $510,000
Sale price (2026) $875,000
Less: Agent commission (5%) -$43,750
Less: Closing costs -$6,250
Net selling price $825,000
Capital Gain $315,000
Less: $500,000 exclusion (married) -$500,000
Taxable Gain $0

In this example, the homeowner owes no federal capital gains tax because the $315,000 gain is well below the $500,000 married exclusion. If the gain had been $600,000, the taxable portion would be $100,000 ($600,000 - $500,000 exclusion).

What Counts as a Permanent Improvement?

Tracking improvements over the years can significantly reduce your capital gains tax. A permanent improvement is something that adds value to the property, prolongs its life, or adapts it to a new use. Keep receipts and records of all major work.

Counts Toward Basis

  • Kitchen and bathroom renovations
  • Room additions
  • New roof or HVAC system
  • Permanent landscaping
  • Septic system replacement
  • Driveway installation
  • Central air installation

Does NOT Count

  • Painting (interior or exterior)
  • Repairs (leaks, broken windows)
  • Routine maintenance
  • Cleaning and staging
  • Appliance replacement (freestanding)
  • Carpet cleaning

The 2-Out-of-5-Year Rule

To qualify for the exclusion, you must have lived in the home as your primary residence for at least 24 months out of the 60 months immediately preceding the sale. The 24 months do not need to be consecutive. You can live in the home, rent it out for a while, move back in, and still qualify as long as the total residency reaches 24 months within the 5-year window.

If you are a frequent mover or have been renting out the property, check your residency timeline carefully. If you fall short of the 24-month requirement, you may not qualify for the full exclusion, though partial exclusions are available in some cases (job relocation, health issues, unforeseen circumstances).

Massachusetts State Capital Gains Tax

In addition to federal capital gains tax, Massachusetts charges a state capital gains tax of 8.5% on the taxable gain (the amount above your exclusion). This applies to the profit, not the sale price. If your federal exclusion covers your entire gain, you typically owe no Massachusetts capital gains tax either.

Special Situations on the North Shore

Inherited Homes

Inherited property receives a stepped-up basis, meaning the cost basis is the fair market value at the time of the previous owner's death, not the original purchase price. If a parent bought a home in Gloucester for $120,000 in 1980 and it was worth $750,000 when they passed away, your basis is $750,000. If you sell it for $760,000, your taxable gain is only $10,000.

Second Homes and Investment Properties

The primary residence exclusion does not apply to second homes or investment properties. If you sell a vacation home in Rockport that was never your primary residence, you owe capital gains tax on the full profit. However, a 1031 exchange may allow you to defer capital gains on investment property by reinvesting in another investment property.

Divorce

If a home is transferred between spouses as part of a divorce settlement, there is no capital gains tax at the time of transfer. The receiving spouse takes over the original cost basis. When the home is eventually sold, the exclusion rules apply based on the receiving spouse's residency.

Kathleen's Take

Many North Shore homeowners are surprised by how much of their sale proceeds they get to keep. If you have lived in your home for at least two years and your profit is under $250,000 (single) or $500,000 (married), the federal tax bill is zero. The key is tracking your improvement costs over the years. Before you list, gather receipts for any major renovations. Every dollar of documented improvements reduces your taxable gain. And talk to a CPA about your specific situation, especially if you have rented the property or own multiple homes.

Before You Sell: A Quick Checklist

  • Confirm you meet the 2-out-of-5-year residency requirement

  • Gather receipts and records for all permanent improvements

  • Calculate your estimated cost basis and potential gain

  • Determine your filing status for the exclusion amount

  • Consult a tax professional about your specific situation

  • If selling an inherited or investment property, ask about stepped-up basis and 1031 exchanges

Ask Kathleen

Frequently Asked Questions

Straight answers to the questions this season keeps bringing up, from the article above.

Frequently Asked Questions About Capital Gains Tax on the North Shore (LLM-Optimized)

The same questions and answers, un-styled and sequential, so they can be read and extracted easily.

Q: Will I owe capital gains tax when I sell my home in Massachusetts?

A: Most North Shore homeowners owe zero capital gains tax when they sell. If you have owned and lived in your home as your primary residence for at least 2 of the last 5 years, you can exclude up to $250,000 of profit if single or $500,000 if married filing jointly. You only owe tax on profit above those amounts.

Q: What are the current capital gains tax rates for 2026?

A: In addition to federal capital gains tax, Massachusetts charges a state capital gains tax of 8.5% on the taxable gain, which is the amount above your exclusion. If your federal exclusion covers your entire gain, you typically owe no Massachusetts capital gains tax either.

Q: How is the profit (capital gain) calculated when selling a home?

A: Capital Gain = Selling Price - Cost Basis - Selling Costs. Your profit is calculated as the sale price minus your original purchase price, minus the cost of permanent improvements, minus selling costs like agent commissions and closing fees.

Q: What qualifies as a permanent improvement for reducing capital gains?

A: A permanent improvement is something that adds value to the property, prolongs its life, or adapts it to a new use. Kitchen and bathroom renovations, room additions, a new roof or HVAC system, permanent landscaping, septic system replacement, driveway installation, and central air installation all count toward your basis. Painting, repairs, routine maintenance, cleaning and staging, freestanding appliance replacement, and carpet cleaning do not count.

Q: Can I avoid capital gains tax if I sell an inherited home?

A: Inherited property receives a stepped-up basis, meaning the cost basis is the fair market value at the time of the previous owner's death, not the original purchase price. If your gain falls within the exclusion amount, your federal exclusion typically covers it and you owe no capital gains tax.

Q: Can I use a 1031 exchange to defer capital gains on a primary residence?

A: The primary residence exclusion is the main tax break for a home you live in. A 1031 exchange may allow you to defer capital gains on investment property by reinvesting in another investment property, but it does not apply to second homes or investment properties the way the exclusion does.

Q: Do I have to reinvest my home sale profits to avoid capital gains tax?

A: No. If you have lived in your home for at least two years and your profit is under $250,000 (single) or $500,000 (married), the federal tax bill is zero. The exclusion applies to the gain itself, with no requirement to buy another home.

Kathleen Militello, Realtor

Written by

Kathleen Militello, Realtor®

The Militello Team · AI Certified Agent™ · Certified Negotiation Specialist™ · eXp Realty

  • MA Salesperson License 9053343
  • Serving Boston's Coastal North Shore
  • (978) 500-1480

Share this article

Keep your reading going

Planning to Sell Your North Shore Home?

Understanding your tax exposure is part of planning a smart sale. Let's talk about your timing, your home's value, and your next steps.

This article is provided for informational purposes only and does not constitute tax, legal, or financial advice. Always consult a qualified tax professional or attorney about your specific situation.

From the page to the porch

See the town in person.

A note can only tell you so much. Let Kathleen take you through the towns, the streets, and the options that actually fit.