eXp Realty
    Kathleen Militello Realtor®Coastal Homes & Living
    (978) 500-1480
    Capital gains tax guide for selling a North Shore home
    Buyer & Seller Tips

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

    The 2026 guide to the primary residence exclusion, calculating your gain, and keeping more of your sale proceeds.

    By Kathleen MilitelloAugust 7, 202612 min read

    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.

    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:

    $250,000

    Exclusion for single filers

    $500,000

    Exclusion for married filing jointly

    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:

    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

    Frequently Asked Questions

    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.

    Find Out What Your Home Is Worth

    Keep Reading