Cost basis is the original value you assign to an asset for tax and record-keeping purposes—usually the purchase price plus fees and capital improvements—and it’s what you subtract from sale proceeds to compute a taxable gain or deductible loss FINRA.org. For detailed IRS rules that affect tricky situations, IRS Publication 550 is the primary reference recommended by regulators FINRA.org.
How to Calculate Cost Basis: Purchases, Fees & Adjustments
Cost basis is the original value you assign to an asset for tax and record-keeping purposes—usually the purchase price plus fees and capital improvements—and it’s what you subtract from sale proceeds to compute a taxable gain or deductible loss FINRA.org.
Practice trading with Finelo
Practice in a simulator, learn with bite-sized lessons, and build confidence before risking real money.
Want to learn more?
Practice in a simulator, learn with bite-sized lessons, and build confidence before risking real money.
Explore FineloExplore Finelo's 28-day challenges
Turn learning into a daily habit with guided challenge paths.
What Calculate Cost Basis Means
Cost basis is the value used to determine gain or loss when you dispose of an asset. At its simplest:
- Cost basis = what you paid for the asset + transaction costs (commissions, certain fees) + capital improvements (for real property), and
- Realized gain or loss = sale proceeds − cost basis.
That definition is the practical scope for investments, collectibles, and many tangible assets; different asset types and tax rules can change which costs are included or excluded, so authoritative guidance matters—IRS Publication 550 is the usual source for those rule details, as noted by FINRA FINRA.org. For non-tax uses (portfolio performance, personal record keeping), people sometimes use adjusted or alternative bases; always state which basis you’re using when you report results.
Practical note: include direct, traceable records (trade confirmations, invoices, receipts) when you set basis. Brokerage reports will often provide broker-calculated basis information—compare their numbers to your records when you prepare tax filings FINRA.org.
How It Works
Mechanically, calculating cost basis follows these steps:
- Identify the acquisition cost(s). Add the price(s) you paid for the asset and any transaction costs you capitalized into the basis (for many securities, that means commissions and certain fees). Use invoices and trade confirmations to support amounts.
- Adjust for permitted additions or subtractions. For real estate this includes capital improvements; for investments, corporate actions (splits, mergers) can change per-share basis and require adjustment records.
- When you sell (or otherwise dispose of) the asset, compute proceeds (gross sale amount minus selling costs) and subtract the adjusted basis to get realized gain or loss.
Example formula (single lot):
- Basis = purchase price × quantity + purchase fees.
- Proceeds = sale price × quantity − selling fees.
- Realized gain/loss = Proceeds − Basis.
Because rules differ by asset and situation, regulators point users to IRS guidance for ambiguous cases—FINRA specifically cites IRS Publication 550 as the detailed authority for cost-basis calculations on investments FINRA.org. Keep source documents so you can reconcile your basis to any broker-supplied 1099-B or tax reporting.
Worked Example
Assumptions (simple taxable account; single-lot stock sale):
- You bought 100 shares at $20.00 per share.
- You paid a $10 commission on purchase.
- You later sold all 100 shares at $28.00 per share and paid a $12 commission to sell.
Step-by-step arithmetic:
- Purchase cost = 100 × $20.00 = $2,000.
- Add purchase commission = $10 → Basis = $2,010.
- Sale proceeds = 100 × $28.00 = $2,800.
- Subtract sale commission = $12 → Net proceeds = $2,788.
- Realized gain = Net proceeds − Basis = $2,788 − $2,010 = $778.
Interpretation: the $778 is the amount you would report (subject to tax rules and holding-period classification). Keep the trade confirmations and the commission receipts in case your broker’s reported basis differs; FINRA recommends reviewing any 1099-B your firm sends and contacting them if amounts don’t match FINRA.org.
How to Interpret It
Cost basis is the pivot between transaction history and tax outcome:
- A higher basis reduces reported gain (or increases reported loss); a lower basis has the opposite effect.
- Basis adjustments (improvements, certain fees) change reported gain only for the asset they’re applied to.
- Broker-reported basis may differ from your records; reconcile differences before you file.
What to watch for when interpreting basis:
- Record mismatches. If your broker’s 1099‑B shows a different basis than your records, review trade confirmations and contact the firm early—brokers are required to provide 1099‑B information for the prior tax year by mid‑February in many cases, and you should compare their amounts to yours promptly FINRA.org.
- Partial sales and lot selection. When you hold multiple purchase lots, which specific lots you identify (or the method your account uses) affects the basis of what you sell; document the lot-identification choice you use.
- Corporate actions and splits. These events change per-share basis even though total basis remains the same; keep corporate notices and adjusted confirmations.
Decision framework (quick): when preparing to sell, ask:
- Do I have clean acquisition records for the lots I expect to sell?
- Does the broker’s reported basis match mine?
- Are there adjustments (fees, improvements, corporate events) that should change basis? If you answer “no” to any, resolve the discrepancy before filing.
For background reading on recurring purchase strategies that affect basis over time, see our glossary entry on Dollar Cost Averaging Dollar Cost Averaging.
Practice trading with Finelo
Practice in a simulator, learn with bite-sized lessons, and build confidence before risking real money.
How It Compares With Related Concepts
Cost basis vs. market value:
- Cost basis is historical cost; market value is current price. They serve different purposes—basis for tax reporting of realized transactions, market value for portfolio valuation.
Cost basis vs. adjusted cost basis:
- “Adjusted basis” typically means the original basis after permitted increases (additions) and decreases (depreciation, certain credits). Use the adjusted figure when computing gain or loss.
Cost basis vs. unrealized gain/loss:
- Unrealized gain/loss = current market value − cost basis (no tax event until realized). Realized gain/loss occurs when you sell and equals proceeds minus basis.
Accounting vs. tax basis:
- Book or accounting basis used for internal performance measures can differ from tax basis because tax rules may allow or disallow certain adjustments. Be explicit which basis you report in analyses.
For related practical reading on cost items and operating vs. investment costs, see our article on Fixed Vs Variable Costs for a clearer sense of which charges commonly enter basis calculations and which are operating expense Fixed Vs Variable Costs.
Limitations and Source Checks
Common ways cost-basis calculation can fail or be misread:
- Missing or incomplete records. If you lack confirmations, reconstructing basis is error-prone and may require conservative estimates or professional help.
- Broker reporting mismatches. Brokers report 1099‑B data to you and the IRS—review these statements and reconcile discrepancies immediately FINRA.org.
- Complex corporate actions and non-standard transactions. Mergers, spinoffs, reorganizations, and similar events can change basis per share in ways that require documentation.
Checklist to verify before filing (compact):
| What to check | Why it matters | Where to verify |
|---|---|---|
| Broker 1099‑B matches your basis | IRS receives the broker’s reported numbers; mismatches can trigger notices | Broker’s 1099‑B and trade confirmations FINRA.org |
| Transaction fees included or excluded correctly | Commissions and certain fees change basis and realized gain | Trade confirmations and receipts |
| Adjustments for improvements or capital additions (real estate) | These increase basis and reduce reported gain | Invoices, contracts, closing statements |
| Records for partial-lot sales and lot identification | Determines which specific purchase lots were sold and their basis | Account lot statements and order instructions |
When to consult primary tax sources or professionals: - If your situation involves many lots, corporate reorganizations, inherited property, gifts, or foreign assets, regulator guidance points to the IRS rules as the controlling authority; FINRA explicitly recommends consulting IRS Publication 550 for detailed scenarios and a tax professional for filing questions FINRA.org.
Practical tips to avoid trouble:
- Keep digital copies of confirmations and invoices for at least as long as your tax statute of limitations (check current IRS guidance).
- When you sell, document which lots you designated (if you have a choice) and keep a copy of the broker’s sale confirmation showing the lot ID.
- Reconcile your records to the broker’s 1099‑B as soon as you receive it and raise discrepancies with the firm promptly—FINRA instructs investors to review broker 1099‑B information and contact the firm if amounts differ FINRA.org.
If you want a focused checklist for reconciling broker-reported basis to your records, save or print the table above and attach copies of the matching trade confirmations before contacting the firm. For practical questions about regular purchase schedules and how they affect basis over many transactions, see the publication’s glossary entry on Dollar Cost Averaging Dollar Cost Averaging.
Important Limits and Verification
U.S. federal tax rules are summarized at a general level. Broker cost-basis fields and Form 1099-B can be incomplete or require adjustment, and state or non-U.S. rules may differ. Keep trade, gift, inheritance, vesting and corporate-action records, verify the current IRS instructions, and use a qualified tax professional for a filing decision.
Sources and Further Verification
- IRS Publication 551 — Basis of Assets
- IRS Publication 550 — Investment Income and Expenses
- IRS Instructions for Form 1099-B
This article is for educational purposes only and does not constitute financial, investment, tax, or legal advice. Finelo does not recommend any security, strategy, or transaction. Investing involves risk, including possible loss of principal. Tax, account, and regulatory rules can change; verify current official guidance and consult a qualified professional for your circumstances.
Practice trading with Finelo
Practice in a simulator, learn with bite-sized lessons, and build confidence before risking real money.
About the author
Finelo Team
The Finelo Team creates practical investing and trading education designed to help beginners learn faster with structured challenges, simulator practice, and bite-sized lessons.
Keep reading — Related articles
Neutral Interest Rate: R-Star Meaning, Estimates & Limits
The neutral interest rate (often called r or “r‑star”) is the real short-term interest rate that is expected to prevail when the economy is at full strength and inflation is stable — in other words, the rate that neither stimulates nor restrains aggregate demand New York Fed.
JOLTS Report: Job Openings, Quits and Labor-Market Signals
The JOLTS report is the Job Openings and Labor Turnover Survey produced by the U.S.
Breakeven Inflation: Formula, Interpretation & Limits
Breakeven inflation is the market‑implied average annual inflation rate (for a specific maturity) at which a nominal Treasury and a same‑maturity Treasury Inflation‑Protected Security (TIPS) would deliver the same inflation‑adjusted return; market practitioners often compute it as “nominal Treasury yield − TIPS (real) yield” for the matched maturity Fidelity.