Cost Basis Calculator

Home › Resources › Cost Basis Calculator
IRS § 1011 & § 1012 Tax Standard

Real Estate Cost Basis Calculator

Calculate your exact IRS adjusted tax basis for residential home sales or investment properties. Itemize qualifying acquisition settlement fees, Treasury Regulation § 1.263(a)-3 capital improvements, energy tax credit reductions, depreciation adjustments, and net taxable capital gains.

Adjusted Cost Basis & Realized Gain Engine

Configure your historical purchase price, allowable capitalized closing costs, qualifying improvements, and statutory tax adjustments.

$
Contract price paid at original acquisition (IRC § 1012).
$
Title insurance, transfer taxes, recording & legal fees (Pub 551). Excludes loan points.
$
Additions, new roof, HVAC, remodeling (Treas. Reg. § 1.263(a)-3). Excludes routine repairs.
$
Federal solar/heat pump credits reduce basis dollar-for-dollar.
$
27.5-year residential depreciation claimed for rental or home office use.
$
Insurance payouts for casualty loss not spent on repairs, or utility easement proceeds.
$
Gross contract price negotiated with the buyer.
$
Realtor commissions, transfer taxes, title escrow, and attorney fees.
Determines applicability of IRS Section 121 capital gains exclusion.
Populates purchase baseline, closing costs, and average 10-year improvements.
Final IRS Adjusted Cost Basis
$351,000
Original Purchase ($285k) + Costs ($6k) + Improvements ($75k) – Credits ($15k)
Net Amount Realized
$582,800
Sale Price ($620k) – Selling Costs ($37.2k)
Total Realized Gain
$231,800
Amount Realized – Adjusted Basis
Net Taxable Capital Gain
$0
100% Shielded by § 121 ($500k Cap)
Adjusted Basis Capital Stack vs. Net Realized Gain
Original Purchase: $285,000
Closing Costs: $6,000
Qualified Improvements: $75,000
Net Realized Gain: $231,800

How the Real Estate Cost Basis Calculator Works

Calculating the true adjusted cost basis of residential real estate is one of the most critical tax accounting steps in real estate ownership. Every dollar properly added to your cost basis shields a dollar of home sale proceeds from federal and state capital gains taxation.

Under Internal Revenue Code (IRC) Section 1011, your property Adjusted Basis represents your net capitalized financial investment. When you eventually sell, your taxable profit is determined solely by subtracting your Adjusted Basis from your Net Amount Realized, not simply your original purchase price.

The Statutory Cost Basis Formula (IRC § 1011 & § 1016):
Adjusted Basis = Original Purchase Price + Qualifying Acquisition Fees + Qualified Capital Improvements - Allowable Depreciation - Casualty Reimbursements - Energy Tax Credits

1. What Acquisition Closing Costs Add to Cost Basis?

Under IRS Publication 551 (Basis of Assets) and IRS Publication 523 (Selling Your Home), not all closing fees paid at the settlement table increase your property tax basis. The IRS enforces a strict division between capitalized title/acquisition charges and disallowed financing costs.

Allowable Costs (Added to Basis)

  • Owner Title Insurance: Policies protecting your ownership interest.
  • Abstract of Title Fees: Title search and title examination fees.
  • Transfer Taxes Paid by Buyer: State and county deed recording stamps.
  • Survey Charges: Property boundary and land surveys.
  • Legal Fees: Attorney fees for deed preparation and closing representation.
  • Utility Connection Charges: Permanent hookups to municipal water/sewer grids.

Disallowed Costs (Cannot Add to Basis)

  • Loan Origination Points: Fees paid to acquire mortgage debt.
  • Mortgage Appraisal Fees: Lender required property valuations.
  • Credit Report Fees: Charges for underwriting credit reports.
  • Prepaid Interest & Escrow: Daily per diem interest and property tax escrows.
  • Hazard & Flood Insurance: Homeowners insurance premiums.
  • Private Mortgage Insurance (PMI): Upfront or monthly PMI premiums.

2. The IRS “BAR” Standard: Capital Improvements vs. Routine Repairs

Homeowners frequently make the expensive mistake of adding ordinary home maintenance and repair expenses to their cost basis. Treasury Regulation § 1.263(a)-3 established the landmark “BAR” framework, establishing that an expenditure can only be capitalized into property basis if it meets one of three statutory tests:

  • Betterment (B): The work fixes a material condition or structural defect existing before property acquisition, enlarges or expands the building footprint, or materially increases the productivity, efficiency, strength, quality, or output of the property.
  • Adaptation (A): The expenditure adapts the property to a completely new or different use that is inconsistent with its original ordinary use when acquired (e.g., converting an unfinished basement or garage into an accessory dwelling unit).
  • Restoration (R): The work replaces a major structural component or building system (e.g., complete roof replacement, full HVAC system overhaul, repiping copper plumbing, or replacing all electrical panels), restores property after a casualty loss, or returns a deteriorated asset to efficient operating condition.
IRS Safe Harbor Warning: Routine maintenance expenses (such as repainting rooms, patching drywall cracks, cleaning gutters, replacing broken window panes, or servicing appliances) merely keep the home in ordinary efficient operating condition. They do not meet the BAR criteria and cannot be capitalized into home basis.

3. Mandatory Downward Adjustments to Cost Basis

While qualifying improvements increase basis, IRS Section 1016 mandates that certain tax deductions and federal subsidies must reduce your basis dollar-for-dollar:

  • Residential Clean Energy Tax Credits (IRC § 25C & § 25D): If you install solar panels, geothermal heat pumps, battery storage systems, or energy-efficient heat pump HVAC units and claim the 30% federal tax credit, your property basis must be reduced by the exact dollar value of the credit claimed.
  • Depreciation Deductions (Allowed or Allowable): If you ever rented out the property, operated a short-term rental, or claimed a home office deduction, you must reduce your basis by the greater of depreciation claimed or depreciation that was allowable under MACRS 27.5-year schedules.
  • Casualty Insurance Reimbursements & Easements: If you suffered a casualty loss and received insurance payments that exceeded your restoration costs, or granted a utility easement across your land and received financial compensation, your basis must be reduced accordingly.

4. Cost Basis Under Inheritance vs. Gifts

The rules governing property basis upon acquisition outside of a traditional purchase differ dramatically depending on transfer structure:

Inherited Real Estate (IRC § 1014)

Beneficiaries receive a full “Stepped-Up Basis” to the property Fair Market Value (FMV) on the date of the decedent death. All unrealized capital appreciation accumulated during the decedent lifetime is permanently erased for tax purposes.

Gifted Real Estate (IRC § 1015)

Recipients take a “Carryover Basis”. For calculating taxable gains upon subsequent sale, your basis is equal to the donor original adjusted basis (plus any gift tax paid). The transfer does not wipe out past taxable appreciation.

5. Community Property vs. Common Law Spousal Stepped-Up Basis

Under IRC § 1014(b)(6), married couples residing in Community Property states enjoy an extraordinary estate planning benefit known as the “Double Step-Up” in cost basis upon the death of the first spouse.

In standard Common Law states (41 states), real estate held in Joint Tenancy with Right of Survivorship receives only a 50% step-up when one spouse passes away. The surviving spouse retains their original 50% cost basis while the deceased spouse 50% share steps up to current market value.

In the 9 Community Property states (Arizona, California, Idaho, Louisiana, Nevada, New Mexico, Texas, Washington, and Wisconsin), if the real estate is properly titled as community property with right of survivorship, 100% of the entire property basis steps up to Fair Market Value on the date of the first spouse death. If the surviving spouse immediately sells the property, zero capital gains tax is due on all appreciation accumulated over their entire joint marriage.

6. Master IRS Capital Improvements Tax Directory

To assist taxpayers in auditing their home improvement receipts, the reference guide below categorizes common residential projects under Treasury Regulation § 1.263(a)-3 and IRS Publication 523:

Home Project / Renovation IRS Category Basis Treatment Statutory Notes
Room Additions & Garage Enclosures Betterment Adds to Basis Expands square footage and usable living space.
Full Roof Replacement Restoration Adds to Basis Replaces a major structural component of the building envelope.
Complete HVAC Heat Pump / AC Overhaul Restoration Adds to Basis Replaces building climate control system.
Kitchen Remodel (Cabinets & Countertops) Betterment Adds to Basis Material upgrade to property functional quality.
Bathroom Addition or Renovation Betterment Adds to Basis Substantial remodeling of plumbing and fixtures.
Driveway Paving & Masonry Retaining Walls Betterment Adds to Basis New permanent exterior civil site improvements.
Rooftop Solar PV Installation Betterment Net Basis Addition Gross cost adds to basis minus IRC § 25D clean energy tax credit claimed.
Swimming Pool or Permanent Deck Betterment Adds to Basis Permanent outdoor recreation addition.
Interior Painting & Wallpapering Maintenance Disallowed Routine upkeep to keep home in standard condition.
Roof Patching & Replacing Broken Shingles Repair Disallowed Minor repair, not replacement of entire structural system.
Plumbing Leak Repair & Drain Cleaning Maintenance Disallowed Ordinary operating expense; repiping copper lines qualifies.
Gutter Cleaning & Power Washing Maintenance Disallowed Incidental maintenance; installing gutter guard systems qualifies.

7. IRS Form 8949 & Schedule D Reporting Mechanics

When you dispose of real estate, your settlement attorney or title company will issue IRS Form 1099-S (Proceeds from Real Estate Transactions) reporting gross sales proceeds to the IRS. To properly report your cost basis and claim statutory tax shields, you must file IRS Form 8949 (Sales and Other Dispositions of Capital Assets) alongside Schedule D (Capital Gains and Losses):

  • Part II (Long-Term Capital Gains): Real estate owned for more than one year is reported on Part II. You enter your Gross Sales Price in Column (d) and your Adjusted Cost Basis in Column (e).
  • Column (f) Code “B”: If the basis reported to the IRS on Form 1099-S is incorrect or blank (which is standard for real estate, as title companies do not track your historical improvements), you enter Code “B” in Column (f) to designate taxpayer adjustments.
  • Column (f) Code “H”: When claiming the primary residence Section 121 exclusion ($250,000 Single / $500,000 MFJ), you enter Code “H” in Column (f) and enter the excluded amount as a negative figure in Column (g).

Adjusted Cost Basis Sensitivity Matrices

The tables below illustrate how tracking capital improvements and allowable costs directly alters realized capital gains and tax liabilities across multiple home sale values.

Scenario 1: Capital Improvement Spend vs. Net Realized Gain ($650,000 Sale Price)

Acquisition Baseline Capital Improvements Acquisition Closing Fees Total Adjusted Basis Selling Costs (6%) Amount Realized Net Realized Gain MFJ §121 Taxable
$300,000 $0 $5,000 $305,000 $39,000 $611,000 $306,000 $0 (Shielded)
$300,000 $25,000 $5,000 $330,000 $39,000 $611,000 $281,000 $0 (Shielded)
$300,000 $50,000 $5,000 $355,000 $39,000 $611,000 $256,000 $0 (Shielded)
$300,000 $75,000 $5,000 $380,000 $39,000 $611,000 $231,000 $0 (Shielded)
$300,000 $100,000 $5,000 $405,000 $39,000 $611,000 $206,000 $0 (Shielded)

Scenario 2: Single Filer Exposure Tiers ($300k Original Basis, $40k Improvements)

Gross Sale Price Selling Costs Amount Realized Adjusted Basis Net Realized Gain Single §121 Cap Exceeding Gain Est. Fed Tax (15%)
$500,000 $30,000 $470,000 $345,000 $125,000 $250,000 $0 $0
$600,000 $36,000 $564,000 $345,000 $219,000 $250,000 $0 $0
$700,000 $42,000 $658,000 $345,000 $313,000 $250,000 $63,000 $9,450
$850,000 $51,000 $799,000 $345,000 $454,000 $250,000 $204,000 $30,600
$1,000,000 $60,000 $940,000 $345,000 $595,000 $250,000 $345,000 $51,750

50-State Real Estate Cost Basis Benchmark Directory

The table below provides a comprehensive 51-jurisdiction comparison modeling historical 10-year purchase baselines (~2014) against current median home sales, typical capital improvement spend, and baseline adjusted cost basis.

Complete 51-jurisdiction dataset (50 States + Washington D.C.)
Download 50-State CSV Dataset
State / Jurisdiction Historical Purchase (~2014) Current Median Sale 10-Yr Capital Improvements Closing Costs to Basis Baseline Adjusted Basis Unadjusted Gain Adjusted Net Gain
Alabama $125,000 $225,000 $28,000 $2,500 $155,500 $100,000 $69,500
Alaska $250,000 $355,000 $42,000 $4,500 $296,500 $105,000 $58,500
Arizona $195,000 $430,000 $48,000 $3,900 $246,900 $235,000 $183,100
Arkansas $110,000 $205,000 $25,000 $2,200 $137,200 $95,000 $67,800
California $400,000 $785,000 $85,000 $7,500 $492,500 $385,000 $292,500
Colorado $255,000 $535,000 $55,000 $4,800 $314,800 $280,000 $220,200
Connecticut $250,000 $390,000 $45,000 $4,900 $299,900 $140,000 $90,100
Delaware $210,000 $355,000 $38,000 $3,800 $251,800 $145,000 $103,200
District of Columbia $460,000 $625,000 $68,000 $9,000 $537,000 $165,000 $88,000
Florida $175,000 $395,000 $50,000 $3,500 $228,500 $220,000 $166,500
Georgia $145,000 $325,000 $35,000 $2,800 $182,800 $180,000 $142,200
Hawaii $510,000 $850,000 $90,000 $9,500 $609,500 $340,000 $240,500
Idaho $165,000 $445,000 $40,000 $3,200 $208,200 $280,000 $236,800
Illinois $160,000 $265,000 $35,000 $3,200 $198,200 $105,000 $66,800
Indiana $120,000 $235,000 $28,000 $2,400 $150,400 $115,000 $84,600
Iowa $130,000 $215,000 $25,000 $2,600 $157,600 $85,000 $57,400
Kansas $135,000 $225,000 $26,000 $2,700 $163,700 $90,000 $61,300
Kentucky $125,000 $205,000 $25,000 $2,500 $152,500 $80,000 $52,500
Louisiana $150,000 $200,000 $28,000 $2,900 $180,900 $50,000 $19,100
Maine $175,000 $385,000 $38,000 $3,400 $216,400 $210,000 $168,600
Maryland $265,000 $415,000 $48,000 $5,100 $318,100 $150,000 $96,900
Massachusetts $330,000 $610,000 $65,000 $6,500 $401,500 $280,000 $208,500
Michigan $115,000 $245,000 $32,000 $2,300 $149,300 $130,000 $95,700
Minnesota $185,000 $335,000 $40,000 $3,600 $228,600 $150,000 $106,400
Mississippi $110,000 $175,000 $22,000 $2,100 $134,100 $65,000 $40,900
Missouri $130,000 $245,000 $30,000 $2,500 $162,500 $115,000 $82,500
Montana $200,000 $455,000 $42,000 $3,900 $245,900 $255,000 $209,100
Nebraska $140,000 $255,000 $30,000 $2,700 $172,700 $115,000 $82,300
Nevada $190,000 $425,000 $45,000 $3,700 $238,700 $235,000 $186,300
New Hampshire $225,000 $455,000 $45,000 $4,300 $274,300 $230,000 $180,700
New Jersey $290,000 $515,000 $58,000 $5,500 $353,500 $225,000 $161,500
New Mexico $165,000 $295,000 $32,000 $3,200 $200,200 $130,000 $94,800
New York $275,000 $475,000 $55,000 $5,200 $335,200 $200,000 $139,800
North Carolina $155,000 $335,000 $38,000 $3,000 $196,000 $180,000 $139,000
North Dakota $185,000 $260,000 $30,000 $3,500 $218,500 $75,000 $41,500
Ohio $120,000 $225,000 $28,000 $2,400 $150,400 $105,000 $74,600
Oklahoma $115,000 $205,000 $25,000 $2,200 $142,200 $90,000 $62,800
Oregon $235,000 $495,000 $52,000 $4,500 $291,500 $260,000 $203,500
Pennsylvania $155,000 $275,000 $35,000 $3,000 $193,000 $120,000 $82,000
Rhode Island $225,000 $445,000 $42,000 $4,400 $271,400 $220,000 $173,600
South Carolina $150,000 $305,000 $35,000 $2,900 $187,900 $155,000 $117,100
South Dakota $155,000 $295,000 $32,000 $3,000 $190,000 $140,000 $105,000
Tennessee $135,000 $315,000 $35,000 $2,600 $172,600 $180,000 $142,400
Texas $155,000 $310,000 $38,000 $3,000 $196,000 $155,000 $114,000
Utah $215,000 $515,000 $55,000 $4,200 $274,200 $300,000 $240,800
Vermont $200,000 $385,000 $40,000 $3,900 $243,900 $185,000 $141,100
Virginia $245,000 $405,000 $45,000 $4,800 $294,800 $160,000 $110,200
Washington $265,000 $585,000 $62,000 $5,200 $332,200 $320,000 $252,800
West Virginia $95,000 $165,000 $22,000 $1,800 $118,800 $70,000 $46,200
Wisconsin $145,000 $285,000 $35,000 $2,800 $182,800 $140,000 $102,200
Wyoming $200,000 $345,000 $35,000 $3,900 $238,900 $145,000 $106,100

Real-World Persona Worked Example: The Davis Family

The Davis Family 13-Year Basis Audit

Mark and Rachel Davis purchased their single-family home in Cary, North Carolina in 2012 for $285,000. Over 13 years of ownership, they completed several major renovations, claimed federal clean energy credits, and are preparing to sell in 2025 for $620,000.

Original Purchase
$285,000
Qualifying Additions
+$81,000
Energy Reductions
-$15,000
Final Adjusted Basis
$351,000

Step-by-Step Accounting Walkthrough:

  1. Original Acquisition Basis: Contract purchase price ($285,000) plus allowable closing costs ($6,000 for owner title insurance, title exam, transfer tax, and deed recording) = $291,000. Their $2,500 mortgage loan origination fees were disallowed.
  2. Capital Improvement Additions: In 2016, they replaced the roof for $15,000 (Restoration). In 2019, they remodeled the kitchen for $45,000 (Betterment). In 2021, they paved the asphalt driveway for $15,000 (Betterment). Total qualifying additions = $75,000. Their $2,000 spent on routine interior painting and gutter cleaning was excluded as maintenance.
  3. Downward Basis Reductions: In 2022, they installed residential rooftop solar for $30,000 and claimed a 30% federal clean energy tax credit under IRC § 25D of $9,000, plus a $6,000 heat pump credit under § 25C. Total basis reduction = $15,000.
  4. Final Adjusted Cost Basis: $291,000 + $75,000 – $15,000 = $351,000.
  5. Disposition & Tax Realization: Gross sale price ($620,000) minus 6% allowable selling commissions and fees ($37,200) equals an Amount Realized of $582,800. Realized capital gain = $582,800 – $351,000 = $231,800. Because Mark and Rachel lived in the home for over 2 years, the entire $231,800 gain is 100% tax-free under the $500,000 MFJ Section 121 exclusion.

Regulatory Disclosures & Basis Recordkeeping Mandates

Calculating adjusted cost basis is subject to strict IRS documentation guidelines and statutory compliance rules under the Internal Revenue Code.

IRS Burden of Proof (IRC § 6001)

The taxpayer carries the complete legal burden of proving cost basis. The IRS requires invoices, receipts, cancelled checks, closing settlement ALTA statements, and contractor contracts to substantiate every improvement added to basis. Bank statements alone without itemized contractor scopes of work are routinely disallowed in audits.

Section 1250 Depreciation Recapture

If any portion of your cost basis was depreciated (such as renting out a room, an in-law suite, or claiming a home office deduction), the accumulated depreciation cannot be shielded under the Section 121 home sale exclusion. Depreciation is taxed upon sale at the unrecaptured Section 1250 rate of up to 25%.

De Minimis Safe Harbor Distinction

For investment and rental properties, taxpayers electing the $2,500 De Minimis Safe Harbor under Treas. Reg. § 1.263(a)-1(f) to deduct small improvements immediately on Schedule E cannot double-dip by adding those same invoiced amounts to property basis upon disposition.

State Non-Conformity Nuances

While federal cost basis rules generally flow through to state tax returns, certain states (such as Pennsylvania, New Jersey, and California) maintain specific statutory depreciation schedules, non-recognition rules, and local transfer tax treatment that may alter final state net taxable gain.

Published By: USPropertyStats Editorial Financial Team

Reviewed By: Certified Real Estate Tax Analysts & Underwriting Contributors

Statutory Sources: Internal Revenue Code (IRC) §§ 1011, 1012, 1014, 1015, 1016, 25C, 25D, 121; Treasury Regulation § 1.263(a)-3 (BAR Standard); IRS Publication 551 (Basis of Assets); IRS Publication 523 (Selling Your Home).

Last Updated: October 2026 | Calculations verified for 2024-2026 tax filing guidelines.