how to find cost basis of stock: step-by-step
How to Find Cost Basis of Stock
Understanding how to find cost basis of stock is essential for calculating capital gains and losses and completing tax reporting accurately. In this guide you will learn what cost basis includes, the most common calculation methods, how corporate events and special situations change basis, how to reconstruct missing records, and step‑by‑step worked examples you can follow.
As you read you'll gain practical next steps for recordkeeping and tools to simplify calculations. The instructions are neutral and informational — consult a tax professional for account‑specific advice.
Overview and why cost basis matters
Cost basis is the starting point to determine taxable gain or loss when you sell shares. If you do not know how to find cost basis of stock for each lot you sell, you cannot correctly calculate capital gains or losses for tax reporting.
Taxes depend on two main factors driven by cost basis:
- The dollar gain or loss: sale proceeds minus your adjusted basis. Accurate basis determines your taxable amount.
- Holding period classification: whether the gain is short‑term (taxed at ordinary income rates) or long‑term (preferential rates for many taxpayers). The date you acquired shares and each lot's adjusted basis both matter.
Accurate basis tracking affects tax liability, harvesting losses, and timing of sales. Brokers report basis on tax forms for many securities, but taxpayer verification is still necessary because not all adjustments or historical lots are always tracked or reported correctly.
Components of cost basis
When you learn how to find cost basis of stock, include every acquisition and adjustment that affects the amount you paid. Common components are:
- Purchase price: the per‑share price at acquisition multiplied by quantity.
- Transaction fees and commissions: broker commissions, trading fees, and other purchase costs that increase basis.
- Reinvested dividends and capital gains: each reinvestment is treated as a new purchase lot and adds to basis.
- Return of capital distributions: may reduce basis rather than being taxed immediately.
- Certain acquisition costs and taxes: for example, transfer fees or required withholding in cross‑border cases when they apply.
Net effect: adjusted basis equals the sum of acquisition costs plus later increases (reinvestments) minus basis reductions (return of capital, certain corporate distributions).
Common cost-basis methods
Brokerages let investors choose or apply a default lot‑identification method. Knowing the differences helps you manage tax outcomes.
First-In, First-Out (FIFO)
FIFO assumes the oldest shares you own are the shares sold. It is the default IRS‑acceptable method when specific identification is not used.
Tax implications:
- Often produces short‑term gains earlier if older lots were bought at lower prices than recent purchases in rising markets.
- Simple to apply when reconstructing sales with missing lot instructions.
Specific Identification (Spec ID)
Specific identification lets you pick which lot(s) you sold so you can choose the tax outcome. To use Spec ID you must:
- Tell your broker at or before the sale which lot(s) are being sold, providing lot identifiers (purchase date, quantity, price) as required.
- Keep written confirmation of the broker's acceptance of your lot selection.
Tax and planning benefits:
- Enables tax optimization such as choosing high‑basis lots to reduce gains or low‑basis lots to realize losses for tax‑loss harvesting.
- Useful for managing short‑term vs. long‑term classification by selecting older lots to receive long‑term treatment.
Average Cost
Average cost pools the cost of identical securities (commonly for mutual funds and some ETFs) and allocates an averaged per‑share basis to shares in the pool.
How it works:
- Compute the weighted average price across all purchases (including reinvested dividends/capital gains) to get a per‑share basis.
- Multiply per‑share average basis by number of shares sold to determine basis for the sale.
Limitations:
- Not usually allowed for individual stocks (IRS rules limit average cost to mutual funds and regulated investment company shares in many cases).
- Hides lot‑level details, which can reduce flexibility in tax planning.
Last-In, First-Out (LIFO) / Highest‑in, Lowest‑in (brief mention)
Some brokerages offer additional options such as selling the newest shares first or variants that prioritize lot selection by highest or lowest basis. These methods can affect tax timing and liability but must conform with IRS rules and broker capabilities.
Note: Always confirm with your broker which methods it supports and how to make a selection that is recognized for tax reporting.
Adjustments and corporate events that change basis
Corporate actions and events change per‑share basis or reallocate basis across new holdings. Track notices and confirmations for adjustments.
Stock splits and reverse splits
- Forward split: increases number of shares and proportionally reduces per‑share basis (total basis remains the same).
- Reverse split: reduces share count and increases per‑share basis accordingly.
Example: If you had 100 shares at $50 basis ($5,000 total) and a 2‑for‑1 split occurs, you now have 200 shares at $25 basis each (still $5,000 total).
Dividends and dividend reinvestment plans (DRIPs)
Reinvested dividends are treated as new purchases at the market price on the reinvestment date and increase total basis.
Practical step: For every DRIP transaction, record date, NAV or price, quantity acquired, and any fees.
Return of capital and distributions
If a distribution is classified as a return of capital, it reduces your basis rather than being taxed when received. When basis hits zero, future return‑of‑capital amounts can generate taxable gain.
Important: Classification matters — check issuer or broker notices and year‑end tax forms for correct reporting.
Mergers, spin‑offs, acquisitions and reorganizations
Corporate reorganizations can split or reallocate basis between old and new securities or change basis per share. Issuer notices and broker adjustments usually specify how to allocate basis.
Where to look: company press releases, IRS notices for complex reorganizations, and broker statements that show adjusted lot records.
Special situations
Certain ownership changes and rules produce unique basis outcomes.
Inherited shares (step‑up in basis)
Generally, inherited shares receive a step‑up (or step‑down) in basis to the fair market value on the decedent’s date of death (or alternate valuation date if used on an estate tax return).
Effect: If fair market value at death equals the value you later sell at, there may be little or no capital gain. Always document estate valuation and executor statements.
Gifted shares
Gifted shares typically carry the donor’s original basis (carryover basis). If the recipient later sells at a price below the donor's basis, special rules use the gift date fair market value to determine gain vs. loss.
Key points:
- For gains: use donor's basis.
- For losses: use the lesser of donor's basis or fair market value on the gift date, with specific rules to determine which applies.
Wash sale adjustments
A wash sale occurs when you sell stock at a loss and acquire substantially identical shares within 30 days before or after the sale. The loss is disallowed and the disallowed loss amount is added to the basis of the replacement shares.
Effect on basis: The disallowed loss increases the replacement shares' basis, deferring the tax benefit until those replacement shares are sold (subject to further wash sale rules).
Fractional shares, ADRs, and foreign securities
- Fractional shares: treat fractional lots as small lots with basis prorated by price.
- ADRs and foreign securities: record currency conversion, foreign withholding, and cross‑border tax treatments. Basis is calculated in local currency then converted to reporting currency using appropriate exchange rates on acquisition and disposition dates.
Reconstructing cost basis when records are missing
If you do not have complete records, follow a stepwise approach to reconstruct basis adequately and defensibly.
- Gather available broker confirmations, monthly statements, and year‑end summaries (1099‑B and equivalents).
- Check transfer agent records or contact the issuing company for historical transaction information.
- Request archived trade confirmations from your broker; many firms retain records for years and can provide copies.
- Use historical price data and dividend records to estimate reinvestment prices if necessary; document sources and methodology used for estimates.
- Apply acceptable default methods (e.g., FIFO) when no specific identification can be supported. Keep documentation showing why FIFO or the chosen method was used.
- If you reconstruct basis using estimates, note your assumptions and keep supporting files in case of IRS inquiry.
When in doubt or with complex corporate events, consult a tax professional who can help assemble a defensible basis history.
Reporting cost basis for taxes
Forms and reporting flow
- Brokers issue Form 1099‑B summarizing proceeds and (often) reported basis for each sale.
- Taxpayers record details on Form 8949 (sales and basis adjustments) and then summarize totals on Schedule D of Form 1040.
Important distinctions:
- Broker‑reported basis: many brokers report basis for covered securities (those acquired after IRS cutoff dates) but may report “unknown” or incorrect amounts for older or complex lots.
- Taxpayer responsibility: ultimate accuracy is the taxpayer’s responsibility. If broker basis is incorrect, you must correct Form 8949 and keep supporting documentation.
Broker responsibilities and default reporting
Brokers are required to report cost basis for many securities acquired after certain dates (for example, stocks acquired on or after specific IRS required reporting start dates). If you do not specify lot selection at the time of sale, brokers may apply their default (commonly FIFO).
If you want to use specific identification, notify your broker per their procedures and obtain written confirmation to ensure the lot selection is reported correctly on 1099‑B.
Practical step‑by‑step guide to finding your stock cost basis
Checklist to determine adjusted cost basis for any sale:
- Gather documentation: trade confirmations, account statements, 1099‑B forms, and DRIP notices.
- List buy lots: for each purchase, note date, quantity, per‑share price, and fees.
- Account for reinvestments: record dates and prices for reinvested dividends and capital gains.
- Account for corporate actions: splits, spin‑offs, mergers, and returns of capital. Adjust lots or allocate basis as required.
- Choose a lot‑identification method: FIFO, specific identification, or average cost where permitted.
- Compute adjusted basis per lot: add purchase price and fees, include reinvestments, and subtract any basis reductions.
- When selling, match sold shares to lots per your chosen method and calculate gain or loss per lot: sale proceeds less adjusted basis.
- Record and retain documentation for each calculation and any communications with your broker.
Tools and resources
Common tools and resources that help when you need to find cost basis of stock:
- Brokerage lot‑selection screens and cost‑basis reporting tools (use your broker’s cost‑basis reporting features to export lot detail).
- Cost‑basis calculators and spreadsheets that sum lots, fees, reinvestments, and corporate adjustments.
- IRS publications and FAQs covering basis rules and reporting (use official IRS guidance for regulatory details).
- Third‑party portfolio and tax software that can import broker transactions and compute per‑lot basis (verify imported data against broker records).
For cryptocurrency holdings or wallet‑native assets, prefer custodial reports from the platform and use wallet export features. If you use a Web3 wallet, consider Bitget Wallet for organized transaction exports and custody integration.
Tax planning and strategy considerations
How you identify lots and time sales can materially affect tax outcomes. Neutral planning points:
- Long‑term holding: holding beyond the long‑term threshold often reduces tax rates on gains.
- Tax‑loss harvesting: selling lower‑basis lots at a loss and replacing them carefully while avoiding wash sales may offset taxable gains.
- Lot selection: using specific identification can reduce taxes by selling high‑basis lots to minimize gains or realize controlled losses.
Do not treat this guide as tax advice. For tax‑sensitive strategies, consult a CPA or tax advisor.
Examples and worked calculations
Simple single‑purchase sale example
Scenario:
- Purchase: 100 shares at $20.00 per share, commission $10.00. Total basis = (100 × $20) + $10 = $2,010.
- Sale: 100 shares sold for $30.00 per share, commission $10.00. Sale proceeds = (100 × $30) - $10 = $2,990.
Gain:
- Gain = Sale proceeds $2,990 − Basis $2,010 = $980.
If held more than one year, the gain is long‑term; otherwise it is short‑term.
Multi‑lot sale with reinvested dividends and split
Scenario summary:
- Lot A: Bought 50 shares on 2019‑06‑01 at $40.00, commission $5. Basis = (50 × $40) + $5 = $2,005.
- Lot B: Bought 50 shares on 2022‑03‑15 at $60.00, commission $5. Basis = (50 × $60) + $5 = $3,005.
- DRIP: Reinvested $100 dividends on 2023‑04‑10 to buy 2 shares at $50.00 each; added basis = $100.
- Split: 2‑for‑1 split in 2024 doubled shares and halved per‑share basis across lots. After split: Lot A = 100 shares at $20.05 basis per share (total $2,005); Lot B = 100 shares at $30.05 per share (total $3,005); DRIP shares = 4 shares at $25.00 (total $100).
Sale event:
- Sold 120 shares on 2025‑11‑01 at $45.00 per share, commission $10.00. Gross proceeds = 120 × $45 = $5,400; net = $5,390.
Using specific identification (sell from Lot B entirely first, then remaining from Lot A):
- From Lot B: sell 100 shares. Basis allocated = 100 × $30.05 = $3,005.
- From Lot A: sell remaining 20 shares. Basis allocated = 20 × $20.05 = $401.
- Total basis sold = $3,005 + $401 = $3,406.
Gain = Net proceeds $5,390 − Basis $3,406 = $1,984.
If instead FIFO applied (oldest first), the sold shares would come primarily from Lot A first (which may change the gain and holding‑period classification).
Document every step: trade confirmations, split notices, DRIP statements, and broker confirmations for lot selection.
Best practices for recordkeeping
- Retain trade confirmations and monthly/year‑end statements.
- Keep annual tax forms such as Form 1099‑B and brokerage cost‑basis reports.
- Retain corporate action notices (splits, mergers, spin‑offs, returns of capital).
- Store digital backups of all documents for the IRS retention period (usually at least 3–7 years; consult your tax advisor for your situation).
- Use consistent file naming and an organized folder structure. Export transaction histories from your broker periodically.
Differences for cryptocurrencies and other assets (brief note)
Many cost‑basis concepts overlap between stocks and crypto (acquisition cost, adjustments for splits or token events). However, crypto has distinct tax treatments and reporting nuances. Exchanges and wallets may not report basis the same way as brokerages.
If you use on‑chain wallets, prefer wallet providers that support clear transaction exports. When discussing exchanges and wallets in this guide, Bitget Wallet is a recommended option for organized exports and tool integrations for cost‑basis reporting.
Frequently asked questions (FAQ)
Q: What if my broker reports “unknown” basis on Form 1099‑B?
A: You must reconstruct basis using your records and report correct basis on Form 8949. Keep documentation of your computation and any communications with the broker.
Q: Can I change my cost‑basis method after a sale?
A: You cannot retroactively change lot selection for a sale that has already occurred. For future sales you can choose a different method, but follow broker procedures and confirm acceptance in writing.
Q: How long should I keep records?
A: Keep trade confirmations, 1099s, and corporate action documents for at least the IRS recommended periods (typically three years for a return, but longer if there are unreported items or complex basis adjustments). Consult a tax professional for guidance on your situation.
Reconstructing basis — practical checklist
- Step 1: Collect all broker statements and 1099‑B forms.
- Step 2: Contact your broker or transfer agent for archived confirmations if gaps exist.
- Step 3: Use historical price/data sources to price DRIPs or reinstatements, and document your sources.
- Step 4: Apply a consistent method (FIFO or Spec ID) and keep a worksheet showing computations.
- Step 5: If adjustments like wash sales apply, calculate basis changes and show how disallowed losses were added to replacement shares.
- Step 6: Keep a final summary per security showing lot dates, quantities, adjusted basis, and total realized gains/losses.
Examples of documentation to request from your broker
- Historical trade confirmations for purchase and sale dates.
- Year‑end cost‑basis reports showing lot details.
- Corporate action notices and how the broker allocated basis.
- Written confirmation of lot selection requests when you specify Spec ID.
Neutral case study reference (timely market context)
As of December 2025, according to Barchart, a major corporate treasury strategy involving digital‑asset holdings affected stock market dynamics when MSCI reviewed index inclusion rules. The MSCI decision not to exclude certain companies temporarily boosted some stocks tied to digital‑asset treasuries. Such corporate strategies can create unusual basis and reporting situations when companies sell assets, issue new shares, or perform reorganizations. When corporate actions affect your holdings, check issuer and broker notices for basis allocation details.
Tools to simplify computations
- Spreadsheet templates with columns for acquisition date, cost, fees, reinvestments, corporate adjustments, and adjusted basis.
- Brokerage lot export (CSV) imported into tax software that supports Form 8949 population.
- Cost‑basis calculators that allow you to run scenarios: FIFO vs Spec ID vs average cost (where permitted).
When using third‑party tools, reconcile their outputs to broker records before filing.
When to get professional help
Consider professional assistance when:
- You own inherited, gifted, or highly fragmented lots with missing history.
- There were complex corporate reorganizations, mergers, or cross‑border issues.
- You need to apply wash sale adjustments across multiple accounts and years.
A CPA or tax advisor can help reconstruct basis, prepare Form 8949 entries, and document methodology for compliance.
Actionable next steps (for readers)
- Gather trade confirmations and 1099‑B forms for the tax year you plan to report.
- Use your broker’s lot‑selection tool or contact the broker to confirm specific identification procedures if you plan to use Spec ID.
- Export transaction history and back it up digitally; consider Bitget Wallet if you hold on‑chain assets and want organized exports.
- If records are incomplete, request archived confirmations from your broker and document estimation methods.
Explore Bitget resources for wallet exports and cost‑basis integrations to simplify reporting.
Best practices summary
- Keep detailed records of every buy, sell, reinvestment, and corporate event.
- Use specific identification when it helps control tax outcomes and obtain written broker confirmations.
- Reconcile broker‑reported basis with your own records before filing taxes.
- When records are missing, document reconstruction steps and sources.
References and further reading
Sources underlying the practices summarized here include broker help centers, industry guides, tax‑preparation firms, and regulatory resources. Examples of widely used resources include brokerage and investment firm cost‑basis pages, FINRA guidance, Investopedia explanations, and tax‑preparer guidance on Form 8949 and Schedule D. For exact IRS rules and forms, consult official IRS publications.
Further reading can be found on brokerage cost‑basis help pages, investor education sites, and the IRS website. For crypto and wallet‑specific exports, consult wallet provider documentation and Bitget Wallet support.
Final notes
Knowing how to find cost basis of stock and documenting every step reduces filing errors and helps you understand the tax consequences of trading decisions. Start by collecting statements and confirming your broker’s lot‑identification procedures. For complex histories or missing records, reconstruct methodically and retain your supporting files.
To streamline recordkeeping across on‑chain and off‑chain holdings, consider using Bitget Wallet for transaction exports and Bitget platform tools for consolidated reporting. For tax compliance and personalized guidance, consult a qualified tax professional.























