Cost basis is the historical amount you paid for an asset (total or per unit); market value is the asset’s current quoted price multiplied by the units you hold. The gap (market value − cost basis) is an unrealized gain or loss until you sell; realized gain or loss is recognized when you transact. This article explains the formulas, a fully worked numeric example, how to read the numbers conditionally, common misreads, and what to verify before acting.
Cost Basis vs Market Value: Tax and Portfolio Differences
Cost basis is the historical amount you paid for an asset (total or per unit); market value is the asset’s current quoted price multiplied by the units you hold.
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.
Educational note: This article is for educational purposes only and does not constitute financial, investment, legal, or tax advice. Finelo does not recommend any security, strategy, platform, or transaction. Investing involves risk, including possible loss of principal. Verify rules, fees, risks, and suitability with official sources or a qualified professional.
What Cost Basis vs. Market Value Means
Cost basis (often called “tax basis” in reporting contexts) is the historical amount you invested to acquire an asset expressed either as a total value or as a per-unit number. For a single purchase it starts with the amount paid plus allowable acquisition costs and later adjustments. Reinvested taxable distributions generally add to basis, while a nondividend distribution treated as return of capital generally reduces basis until basis reaches zero; amounts beyond zero may be taxable gain. When you have multiple purchases, you typically express basis as a weighted per-unit figure (see How It Works) or track lot-level bases for specific-identification sales.
Market value is the current price at which an asset would trade in an open market: commonly the quoted market price per unit multiplied by the number of units you own. Use an example asset class you already know — such as publicly traded stocks — to see the distinction in practice; stocks and how they trade are described by regulator educational resources for investors Investor.gov: Stocks.
Why the Distinction Matters
- Measurement: cost basis anchors the historical cost used to compute realized taxable gain or loss when you sell; market value provides a snapshot of portfolio value at a point in time.
- Decision framing: comparing market value to cost basis signals whether a position is at an unrealized profit or loss, but it is not itself a recommendation to buy or sell.
- Recordkeeping: accurate basis tracking (per lot or averaged) is necessary for correct reporting and for modeling net proceeds after fees and taxes.
How Cost Basis and Market Value Work
Core Formulas
- Total cost basis = sum of cash paid for the position (all buys) ± documented adjustments.
- Per-unit cost basis = total cost basis ÷ total units held.
- Market value = current quoted price per unit × units held.
- Unrealized gain (paper gain) = market value − total cost basis.
These are arithmetic relationships; the important work is maintaining correct input values (quantity, purchase price, and any legitimate adjustments). If you place a market order to sell, regulators explain that the order executes at the prevailing market price when matched, which can differ from the last quoted trade in volatile conditions — see FINRA’s explanation of order execution and order types for specifics about how execution works relative to quoted prices FINRA: Order Types.
Multiple Purchases and Tax Lots
- A weighted average can summarize the economics of many lots, but it is not generally a permitted tax-lot method for ordinary stock. Average-basis tax treatment is generally limited to eligible mutual-fund shares and certain dividend-reinvestment-plan shares; ordinary stock sales generally use adequate specific identification or FIFO.
- Specific-identification: when you can document which purchase lots you sold, you use those lots’ actual bases to compute realized gain or loss; this can change tax timing and short- vs. long-term classification.
- First-in-first-out (FIFO) and other default methods: custodians sometimes apply a default lot selection method when specific identification isn’t elected.
Adjustments to Track
- Commissions or transaction fees added to purchase cost.
- Reinvested dividends that increase your unit count and change per-unit basis.
- Corporate actions: splits, spin-offs, or return-of-capital events change units or basis in ways you must document.
- Transfers between accounts: transferred lots may carry over basis or require custodian reconciliation.
Operational note: custodians report basis and market value feeds differently — always reconcile important positions by re-running the arithmetic on raw trade records.
Worked Example
Assumptions
- Purchase A: buy 100 shares at $20.00 each.
- Purchase B: buy 50 shares at $30.00 each.
- No commissions for simplicity.
- Current quoted market price: $40.00 per share.
Step-by-Step Calculation
- Total cost basis = (100 × $20.00) + (50 × $30.00) = $2,000 + $1,500 = $3,500.
- Per-share cost basis = $3,500 ÷ 150 shares = $23.333… → $23.33 (rounded).
- Market value = 150 shares × $40.00 = $6,000.
- Unrealized gain = $6,000 − $3,500 = $2,500.
- Gain per share = $40.00 − $23.33 ≈ $16.67.
Interpretation of the numbers (concrete)
- If you sell all 150 shares at the quoted market price and there are no fees or tax effects, you would convert the unrealized gain into realized proceeds equal to the market value; realized gain equals the unrealized gain above.
- If the price falls to $18.00, market value = 150 × $18 = $2,700, producing an unrealized loss of $3,500 − $2,700 = $800.
What Changes the Outcome
- Model net proceeds: subtract estimated fees and a conservative execution haircut (e.g., a spread or slippage estimate) from the market value to see realistic cash you might receive. This guards against treating quoted market value as guaranteed sale proceeds.
How to Interpret the Difference
Primary interpretations (conditional)
- Performance snapshot: market value minus cost basis measures cumulative performance to date but is backward-looking; it does not predict future returns. Treat it as a status metric, not a forecast.
- Liquidity and execution risk: quoted market value is a snapshot; the actual sale price depends on order type, market depth, and timing. FINRA explains how different order types (market vs limit) interact with execution mechanics and can affect final sale price FINRA: Order Types.
- Tax timing: cost basis is the starting point for taxable gain or loss on sale; whether you owe tax depends on whether and when you sell and on your jurisdiction’s tax rules. Avoid treating unrealized gains as cash until realized and net of fees and taxes.
Decision Framework
- If you need a historical performance metric: compute (market value − cost basis) and note it is unrealized until sale.
- If considering selling: model projected net proceeds = market value − estimated fees − conservative execution adjustment − estimated taxes.
- If reporting tax liability: use documented lot-level bases or the custodian’s reporting method and consult tax guidance for timing and classification.
Common Misreads and Fixes
- Misread: treating market value as guaranteed sale proceeds. Fix: model fees and execution slippage; use limit orders when price control matters FINRA: Order Types.
- Misread: using an incorrect per-unit basis after many buys. Fix: keep lot-level records, or recompute weighted-average basis from raw trade history before calculating realized gain.
- Misread: assuming unrealized gains are cash for spending. Fix: don’t spend against paper gains until proceeds are settled in your account and net of taxes/fees.
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
Comparison Table
| Concept | What it expresses | When you use it |
|---|---|---|
| Cost basis | Historical dollars invested (total or per unit) | To compute realized gain/loss at sale and measure purchase performance |
| Market value | Current quoted price × units held | To report current portfolio value or to price a potential sale |
| Fair market value | An arm’s-length price used in valuation/tax contexts | When statutes or valuation rules require a standardized appraisal or tax-determined value |
| Book/carrying value | Accounting value: historical cost adjusted for depreciation or other entries | For financial statements under accounting rules, not a market quotation |
Notes on Related Terms
- Fair market value is commonly used in tax and legal contexts to indicate an arm’s-length market price; its formal definition depends on the applicable statute or standard, so use the authority specified for that purpose.
- Book value (carrying value) is an accounting construct (historical cost less depreciation and other adjustments) and does not equal market value unless market conditions align with accounting assumptions.
Practical decision rubric (quick)
- Measuring gain since purchase: compare market value to cost basis.
- Estimating cash if you sell: start with market value, then subtract realistic fees, execution adjustments, and taxes.
- Reporting for tax: use custodian reports or lot-level documentation and follow tax authority rules in your jurisdiction.
Limitations and Source Checks
Practical Limitations
- Broker/custodian reporting mismatches: custodians sometimes omit adjustments or carryover bases after transfers; reconcile your raw trade history with custodian reports before relying on their basis numbers.
- Market illiquidity and execution: a quoted market price may be non-executable at scale or during volatility; order type choice affects whether you get the quoted price — see FINRA’s guidance on order types and execution FINRA: Order Types.
- Corporate actions and special events: splits, spin-offs, and returns of capital change units or basis; these events require explicit adjustments that brokers may not automatically apply correctly.
Source-Checking Checklist
- Reconcile transaction history: confirm dates, quantities, and per-unit prices used to compute your cost basis.
- Recompute the math: run the simple arithmetic from the Worked Example and compare results to custodian reports.
- Confirm the market price source: check whether the displayed price is last sale, midpoint, or indicative. Different platforms show different feeds; know which feed your platform uses.
- Verify corporate-action notices: review issuer or custodian notices for splits, spin-offs, or return-of-capital events and confirm how they altered unit counts or per-unit basis.
Failure Modes and Mitigation
- Lot-selection error at sale: selling shares assuming the wrong lot can misstate realized gain. Mitigation: when allowed, use specific-identification at sale and document the lot(s) you intend to sell.
- Treating paper gains as spendable: treating unrealized gains as cash before sale creates liquidity and tax surprises. Mitigation: model net proceeds with conservative execution and tax estimates before any spending decisions.
Quick Checklist Before Acting
- Recompute basis from raw trade records.
- Confirm price feed and run a conservative sale-price scenario (account for spread/slippage).
- Estimate fees and likely tax impact for realized gain.
- Decide lot-selection method if selling a portion.
Related Finelo Reading
- If you buy repeatedly and want a compact per-buy average, see Dollar Cost Averaging for the acquisition pattern that produces a weighted average basis Dollar Cost Averaging.
FAQ
Is market value the amount I will receive if I sell?
Not necessarily. A quoted market value is a snapshot; actual proceeds can differ because of execution price, fees, and taxes. Model a conservative sale price and verify the order mechanics that apply to the asset.
Why can cost basis differ from the original purchase amount?
Later purchases, reinvestments, fees, and certain corporate actions can change the total or per-unit basis. Reconcile the figure against transaction records and applicable tax guidance before relying on it for reporting.
Final Practical Check
- Before acting on a gap between cost basis and market value, recompute numbers from raw trade records and model at least two sale scenarios: a conservative execution price that includes slippage and a best-case at the quoted market price. This prevents surprises between “paper” valuations and real proceeds.
Sources and Further Verification
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
UGMA vs UTMA Accounts: Taxes, Control, and Which Fits Your Child
U.S. scope: This article discusses United States institutions, product conventions, and dollar examples unless stated otherwise. Rules can vary by state and provider and may change. The UK…
Teaching Kids About Money by Age: A Practical Plan from 5 to 18
U.S. scope: This article discusses United States institutions, product conventions, and dollar examples unless stated otherwise. Rules can vary by state and provider and may change. The UK…
Renting vs Buying a Home: The Break‑Even Math for Young Families
Neither renting nor buying is universally better — it’s a math problem plus a life question. Buying trades large up‑front and exit costs plus ongoing ownership expenses for equity,…