{
  "title": "Capital Gains on the Sale of Your Home: the $250,000 / $500,000 Exclusion and the Tax on the Rest",
  "canonical": "https://quantcalc.app/home-sale-capital-gains/",
  "status": "ENGINE",
  "license": "CC-BY-4.0",
  "date_modified": "2026-12-02",
  "sources": [
    {
      "url": "https://www.law.cornell.edu/uscode/text/26/121",
      "label": "26 U.S.C. §121"
    },
    {
      "url": "https://www.irs.gov/publications/p523",
      "label": "IRS Publication 523, Selling Your Home"
    },
    {
      "url": "https://www.irs.gov/taxtopics/tc701",
      "label": "IRS Topic No. 701, Sale of your home"
    },
    {
      "url": "https://www.law.cornell.edu/uscode/text/26/1411",
      "label": "26 U.S.C. §1411"
    },
    {
      "url": "https://www.law.cornell.edu/uscode/text/26/1",
      "label": "26 U.S.C. §1(h)"
    }
  ],
  "figures": {
    "exclusion": {
      "single": 250000,
      "married_filing_jointly": 500000
    },
    "months_required": 24,
    "lookback_years": 5,
    "niit": {
      "rate": 0.038,
      "threshold": {
        "single": 200000,
        "mfj": 250000,
        "mfs": 125000,
        "hoh": 200000
      }
    },
    "examples": [
      {
        "household": "Single, $70,000 of wages",
        "gain": 200000,
        "excluded": 250000,
        "taxable": 0,
        "federal_tax_2026": 0,
        "niit_part": 0
      },
      {
        "household": "Single, $70,000 of wages",
        "gain": 350000,
        "excluded": 250000,
        "taxable": 100000,
        "federal_tax_2026": 15000,
        "niit_part": 0
      },
      {
        "household": "Married filing jointly, $120,000 of wages",
        "gain": 650000,
        "excluded": 500000,
        "taxable": 150000,
        "federal_tax_2026": 21595,
        "niit_part": 760
      },
      {
        "household": "Married filing jointly, both 66, $60,000 of pensions",
        "gain": 800000,
        "excluded": 500000,
        "taxable": 300000,
        "federal_tax_2026": 39220,
        "niit_part": 4180
      },
      {
        "household": "Single, $70,000 of wages, sold after 12 months for a new job",
        "gain": 200000,
        "excluded": 125000,
        "taxable": 75000,
        "federal_tax_2026": 11250,
        "niit_part": 0
      }
    ]
  }
}
