Under IRC Section 1012, the cost basis of property is what you paid for it, and that figure is the starting point the IRS uses to measure gain or loss whenever you later sell, exchange, or dispose of the asset. “Cost” is broader than the sticker price: it includes cash paid, debt you take on to acquire the property, the fair market value of any other property you trade for it, the value of services you render as payment, and certain expenses of acquiring the asset and putting it into service.1Office of the Law Revision Counsel. 26 U.S. Code 1012 – Cost2Internal Revenue Service. Publication 551, Basis of Assets Section 1012(a) states the rule; dozens of other code sections carve out exceptions for gifts, inheritances, corporate transactions, partnerships, and tax-deferred exchanges.
Getting this number right matters because it stays with the property for as long as you own it. Improvements push it up, depreciation and certain deductions pull it down, and the running total — your adjusted basis — is what you subtract from the sale price to compute taxable gain. Overstate basis and you underpay tax; understate it and you hand the IRS money you didn’t owe.
What Counts as Cost at Acquisition
Beyond the purchase price itself, IRS Publication 551 treats several acquisition-side expenses as part of basis: sales tax, freight, installation and testing charges, excise taxes, legal and accounting fees that must be capitalized, revenue stamps, and recording fees.2Internal Revenue Service. Publication 551, Basis of Assets The unifying idea is that any dollar you spend to acquire the property and get it ready for use, and that you haven’t already deducted elsewhere, becomes part of your investment in the asset.
Assumed obligations count too. If you agree to pay debts the seller owes, that assumption is part of your cost. And if you pay for the property partly with services rather than cash, the fair market value of those services is included in basis.
Real Estate Closings: What Goes Into Basis
Real estate transactions produce long settlement statements, and the IRS distinguishes cleanly between costs that build basis and costs that don’t. Settlement charges that become part of basis include abstract of title fees, charges for installing utility services, legal fees for the title search and deed preparation, recording fees, surveys, transfer taxes, and owner’s title insurance. Seller obligations you agree to cover — back taxes, sales commissions, repair charges — also fold in.2Internal Revenue Service. Publication 551, Basis of Assets
Financing costs stay out. Points, mortgage insurance premiums, loan assumption fees, lender-required appraisal costs, and credit report fees are excluded, as are casualty insurance premiums, pre-closing rent, and pre-closing utility charges.2Internal Revenue Service. Publication 551, Basis of Assets Those costs relate to how you financed and occupied the property, not to what you paid for it.
Section 1012(b) adds one specifically real estate rule: any real property taxes treated as imposed on you under the proration rules of Section 164(d) are excluded from basis.1Office of the Law Revision Counsel. 26 U.S. Code 1012 – Cost When buyer and seller split property taxes at closing, the buyer’s share for the period after closing is a deductible expense, not an addition to basis.
Stocks, Bonds, and Mutual Fund Shares
For securities, basis starts with the purchase price plus the costs of the purchase itself, such as brokerage commissions and transfer or recording fees.2Internal Revenue Service. Publication 551, Basis of Assets From there, corporate actions and reinvestments generate ongoing adjustments.
A stock split isn’t taxable and doesn’t change your total basis; you spread the same total across more shares. If you held 100 shares at $15 each for a total basis of $1,500 and the company declared a 2-for-1 split, you’d hold 200 shares at $7.50 each.3Internal Revenue Service. Stocks, Options, Splits, Traders Reinvested dividends work differently: each reinvestment is a separate purchase with its own basis and acquisition date, and it doesn’t change the basis of the shares you already held.
Section 1012(d) allows stock acquired through a dividend reinvestment plan after 2011 to use the average basis method, which simplifies the accounting when you accumulate many small reinvestment lots.1Office of the Law Revision Counsel. 26 U.S. Code 1012 – Cost
For “covered” securities — generally stock acquired for cash after 2010 and mutual fund shares acquired after 2011 — brokers report basis to the IRS on Form 1099-B.4Internal Revenue Service. Instructions for Form 1099-B (2026) For older “noncovered” securities, the broker may report proceeds but not basis, so tracking falls to you. Either way, the IRS compares your reported basis against whatever information it holds, and mismatches produce notices.
How Basis Changes After You Buy
Your cost basis on day one is rarely your basis at sale. IRC Section 1016 requires adjustments for expenditures, deductions, and other events that change your investment in the property, and the running total is your adjusted basis.5Office of the Law Revision Counsel. 26 U.S. Code 1016 – Adjustments to Basis
Increases
Capital improvements that add value, extend the property’s useful life, or adapt it to a new use increase basis. Publication 551 gives specific examples: extending utility service lines, impact fees, legal fees for defending or perfecting title, zoning costs, and assessments for local improvements such as road paving or drainage work.2Internal Revenue Service. Publication 551, Basis of Assets Ordinary repairs that just maintain the property in its current condition — patching a roof, repainting — don’t qualify. The question is whether the work meaningfully changes value, function, or life expectancy.
Decreases
Deductions and credits you’ve claimed against the property reduce basis, because you’ve already received a tax benefit from those dollars. Common reductions include depreciation and amortization, Section 179 expensing, casualty and theft loss deductions, insurance reimbursements, certain energy credits, and nontaxable corporate distributions.2Internal Revenue Service. Publication 551, Basis of Assets
Depreciation carries a trap worth flagging. Section 1016(a)(2) reduces basis by depreciation “allowed or allowable,” whichever is greater.5Office of the Law Revision Counsel. 26 U.S. Code 1016 – Adjustments to Basis If you owned a rental property and never claimed depreciation, the IRS still reduces your basis as though you had. The deduction you skipped doesn’t preserve basis; it disappears while the basis reduction happens anyway.
Where Section 1012 Doesn’t Apply
Cost basis is the general rule, but several categories of property arrive with a different basis rule from the start. If you’re trying to figure the basis of any of the following, Section 1012 isn’t your answer.
Gifts
When you receive property as a gift, you have no cost, and IRC Section 1015 substitutes a carryover rule: your basis for calculating gain is generally the donor’s adjusted basis at the time of the gift.6Office of the Law Revision Counsel. 26 U.S. Code 1015 – Basis of Property Acquired by Gifts and Transfers in Trust Appreciation that built up during the donor’s ownership carries over to you. A dual-basis rule applies when fair market value at the time of the gift is lower than the donor’s basis: you use the donor’s higher basis to measure a gain and the lower gift-date FMV to measure a loss, and a sale between those two figures produces neither.7Internal Revenue Service. Property Basis, Sale of Home, Etc.
Inherited Property
Under IRC Section 1014, the basis of property acquired from a decedent is generally the fair market value on the date of death rather than the decedent’s original cost.8Office of the Law Revision Counsel. 26 U.S. Code 1014 – Basis of Property Acquired from a Decedent Appreciation during the decedent’s lifetime is wiped out; the heir starts fresh at date-of-death value. The adjustment runs both ways, so property that had declined in value produces a stepped-down basis and no deductible loss for the pre-death decline.9eCFR. 26 CFR 1.1014-1 – Basis of Property Acquired from a Decedent
Like-Kind Exchanges
A Section 1031 exchange of real property held for business or investment defers gain rather than eliminating it, and the replacement property’s basis reflects that. Under Section 1031(d), basis of the replacement property equals the adjusted basis of the property given up, decreased by any cash received and increased by any gain recognized; debt assumed by the other party is treated as cash received for this purpose.10Office of the Law Revision Counsel. 26 U.S. Code 1031 – Exchange of Real Property Held for Productive Use or Investment The result is a substituted basis that keeps the deferred gain locked inside the new property. After the 2017 Tax Cuts and Jobs Act, Section 1031 applies only to real property.
Involuntary Conversions
When property is destroyed, stolen, or condemned and you reinvest the proceeds in similar replacement property, IRC Section 1033 lets you defer the gain. The replacement property’s basis is its cost minus the deferred gain, preserving the built-in gain for later recognition.11eCFR. 26 CFR 1.1033(b)-1 – Basis of Property Acquired as a Result of an Involuntary Conversion
Records to Keep
The IRS requires you to keep records related to property until the statute of limitations expires for the tax year in which you dispose of it, which for most returns is three years after filing. If you received property in a tax-deferred exchange, records for both the old and the new property must be kept until the limitations period runs on the year you dispose of the replacement.12Internal Revenue Service. How Long Should I Keep Records? In practice, that means holding closing statements, improvement receipts, and depreciation schedules for decades if you own rental real estate or have chained together like-kind exchanges.
For securities, keep confirmations for anything acquired before the covered-security cutoffs, because the broker isn’t reporting basis to the IRS and reconstructing it later — after mergers, spin-offs, reinvestments, and account transfers — is far harder than saving the paperwork as you go.