Back to blog
Import Portfolio CsvHow To Track Cost BasisRecording Asset Costs

Cost Basis Tracking: Your Complete U.S. Tax Guide

Master cost basis tracking to ensure accurate tax calculations and avoid costly mistakes when selling investments — Evibe’s complete U.S. tax season guide.

TThe Evibe Team· Building EvibeAug 10, 202619 min read

Cost Basis Tracking: Your Complete U.S. Tax Guide

Hands organizing financial documents on desk

Cost basis tracking is the practice of recording and maintaining the original purchase price of an investment, adjusted for fees, reinvested dividends, and corporate actions, so you can accurately calculate capital gains or losses when you sell. Your adjusted basis is what the IRS uses to determine how much of your sale proceeds are taxable. Get it wrong and you either overpay or underpay, neither of which ends well.

Three things to do right now:

  • Pull your 1099-B and account history. Your broker sends a Form 1099-B by mid-February showing proceeds and, for covered securities, the cost basis they have on file. Download it alongside your trade confirmations and account statements.
  • Reconcile broker basis to your own records for recent sales. Cross-check the basis figures on your 1099-B against your purchase confirmations. Discrepancies are common, especially after dividend reinvestments or account transfers.
  • Flag any special cases. Tag positions acquired as gifts, inherited assets, holdings transferred before 2011, or any lot where you triggered a wash sale. These require manual adjustments that brokers often cannot make for you.

Authoritative references to keep open while you work: FINRA's cost-basis basics, IRS Forms 1099-B, 8949, and Schedule D, and your brokerage's cost-basis center or tax-lot screen.


Key Takeaways

Accurate cost basis tracking is the foundation of correct capital gains reporting: get the adjusted basis wrong and you either overpay taxes or invite an audit.

PointDetails
Start with your 1099-BPull it by mid-February, then reconcile every sale to your own trade confirmations before filing.
Adjusted basis includes more than purchase priceAdd fees and reinvested dividends; subtract return of capital; apply split and corporate-action adjustments.
Method selection changes your tax billSpecific ID gives maximum control; FIFO and average cost are broker defaults that may not serve your tax strategy.
Non-covered lots are your responsibilityPre-2011 equity lots and transferred positions require independent basis calculation; brokers report proceeds only.
Evibe automates the hard partsAccount sync, dividend lot tracking, and historical FX rates keep your basis current without manual entry.

Table of Contents

What do cost basis, adjusted basis, and tax lot actually mean?

Cost basis is the starting point: what you paid for an asset, including commissions and fees. Adjusted basis is that number after you apply every required modification, whether up or down, over the life of the holding. The IRS taxes you on the difference between your sale proceeds and your adjusted basis, not your original purchase price.

A tax lot is a discrete purchase of a security on a specific date at a specific price. If you buy 50 shares of a stock in January and another 50 in March, you have two tax lots, each with its own basis and holding period. The holding period determines whether your gain is taxed at the lower long-term capital gains rate (assets held more than one year) or the higher short-term rate (one year or less).

Covered vs. non-covered securities is a reporting distinction that matters enormously in practice. Brokers are required to report basis to the IRS only for covered securities, those purchased after the phase-in dates set by the 2008 Emergency Economic Stabilization Act: equities acquired after January 1, 2011; mutual fund and ETF shares after January 1, 2012; and most other securities after January 1, 2014. Anything bought before those dates is non-covered, and the broker reports proceeds but not basis. You are on your own for the basis calculation.

Here is a quick example. You buy 100 shares at $40 per share and pay a $10 commission. Your initial basis is $4,010. The stock later pays a $0.50 per share dividend that you reinvest, buying 1.2 new shares at $41. That reinvestment creates a new tax lot with a basis of $49.20. Your total adjusted basis across both lots is now $4,059.20. Sell all 101.2 shares for $5,000 and your taxable gain is $940.80, not $1,000.


How to calculate cost basis: formulas and worked examples

The core formula is straightforward:

Adjusted basis = purchase price + transaction fees + reinvested amounts − return of capital

Apply it lot by lot, not to the whole position at once.

Single-lot example

  1. You buy 200 shares of XYZ on March 15, 2023, at $25 per share. Commission: $4.95.
  2. Initial basis: (200 × $25) + $4.95 = $5,004.95
  3. You sell all 200 shares on April 10, 2024, for $32 per share. Proceeds: $6,400.
  4. Holding period: March 15, 2023 to April 10, 2024 = more than one year → long-term gain.
  5. Capital gain: $6,400 − $5,004.95 = $1,395.05

Multi-lot example with dividend reinvestments

  1. Lot A: 100 shares of ABC, purchased January 10, 2022, at $50. Commission: $0. Basis: $5,000.
  2. Lot B: Dividend reinvestment on March 1, 2022: $75 buys 1.5 shares at $50. Basis: $75. (New tax lot.)
  3. Lot C: 50 shares purchased July 15, 2023, at $60. Basis: $3,000.
  4. You sell 100 shares on August 1, 2024. Under FIFO, the broker sells Lot A first (100 shares, basis $5,000). Proceeds at $70 per share: $7,000. Gain: $2,000, long-term.
  5. If you had instead used Specific ID and selected Lot C (50 shares, basis $3,000) plus 50 shares from Lot A (basis $2,500), your total basis would be $5,500 and your gain $1,500, still long-term but $500 lower.

As Investopedia notes, each dividend reinvestment creates a separate tax lot with its own basis and holding period. Investors who ignore reinvestments routinely overstate their gains and overpay taxes.

Holding period note: The clock starts the day after the purchase date and ends on the sale date. For inherited assets, the holding period is automatically treated as long-term regardless of how long you actually held the shares.

Currency conversion for foreign purchases: Use the IRS-accepted spot exchange rate on the purchase date to convert the foreign-currency cost into U.S. dollars. That dollar figure becomes your basis. Evibe's historical FX support captures those rates automatically at the time of purchase, which removes one of the most error-prone manual steps for investors holding foreign securities.


Which cost-basis method should you use, and when?

The method you choose determines which tax lots are sold first and, therefore, how much gain or loss you recognize. Vanguard documents four primary methods that U.S. investors commonly use.

MethodHow it worksTypical tax impactRecordkeeping burden
FIFO (First In, First Out)Sells oldest lots firstOften realizes long-term gains; can be costly in rising marketsLow — broker default for most equities
Specific IDYou designate which lots to sell before the trade settlesMaximum flexibility; can target high-basis or long-term lotsHigh — requires written lot instructions to broker
Average CostAverages basis across all shares; one blended per-share costSimplifies math; cannot cherry-pick lotsLow — mutual fund default
HIFO (Highest In, First Out)Sells highest-basis lots firstMinimizes current-period gainMedium — requires lot-level records
MinTaxPrioritizes long-term losses, then short-term losses, then long-term gainsOptimizes after-tax return over timeHigh — algorithm-driven, offered by some brokers

Mutual funds commonly default to average cost; most equity accounts default to FIFO. If you never specify a method, your broker applies its default and you lose the ability to retroactively change the lot selection for completed sales.

Pro Tip: Specific ID is the most powerful method for tax minimization, but you must give your broker written lot-selection instructions before the trade settles, not after. A simple email or in-platform lot selection that you screenshot and save is sufficient documentation. Without that paper trail, the IRS can reject your lot designation.

The average-cost vs. FIFO decision mirrors the inventory accounting debate businesses face. As QuickBooks explains, average costing smooths out price volatility while FIFO reflects the actual sequence of purchases. For investors, the practical difference is that average cost locks you into a blended rate and prevents lot-level optimization, while FIFO gives you a clear audit trail but may accelerate gains in a rising market.

Hands balancing wooden currency blocks on table


Adjustments and special cases that change your basis

Real portfolios rarely stay clean. These are the events that require basis adjustments and how to handle each one.

  • Reinvested dividends and mutual fund distributions. Every reinvestment is a new tax lot at the reinvestment price. TurboTax emphasizes that failing to add reinvested distributions to your basis is one of the most common causes of double taxation. Track each reinvestment date and price separately.

  • Return of capital. When a distribution is classified as return of capital (common with REITs and MLPs), it reduces your basis rather than being taxed as income. Reduce basis by the return-of-capital amount each time you receive one. If cumulative returns of capital reduce your basis to zero, any further return-of-capital distributions become taxable as capital gains. Per IRS Publication 550, basis cannot go below zero.

  • Stock splits. A 2-for-1 split doubles your share count and halves your per-share basis; total basis stays the same. Example: 100 shares at $80 basis per share ($8,000 total) becomes 200 shares at $40 basis per share ($8,000 total). Spin-offs require allocating the original basis between the parent and new company shares based on their relative fair market values on the distribution date.

  • Gifts. When you receive a gift, your basis is generally the donor's adjusted basis (carryover basis). If the fair market value at the time of the gift is lower than the donor's basis and you later sell at a loss, your basis for loss purposes is the fair market value on the gift date. This asymmetry catches many recipients off guard.

  • Inherited property. Inherited assets receive a stepped-up basis equal to the fair market value on the date of the decedent's death (or the alternate valuation date if elected). The holding period is automatically long-term. This is one of the most significant tax advantages in the U.S. tax code and one reason accurate estate records matter.

  • Wash sales. If you sell a security at a loss and buy a substantially identical security within 30 days before or after the sale, the IRS disallows the loss. The disallowed loss is added to the basis of the replacement shares, deferring rather than eliminating the tax benefit. The wash-sale window is 61 days total: 30 days before the sale, the sale date, and 30 days after.


How broker reporting works and the IRS forms you will use

What brokers report and when

Under the cost-basis reporting rules phased in after the 2008 law, brokers must report both proceeds and adjusted basis to the IRS for covered securities. For non-covered securities, they report proceeds only. As FINRA makes clear, many investors wrongly assume their broker handles all tax tracking. Brokers track only what they acquired in their own systems after the statutory dates. Pre-2011 equity lots, assets transferred from another broker, and positions in non-brokerage accounts remain your responsibility.

Expect your 1099-B by mid-February for the prior tax year. Some brokers issue corrected 1099-Bs in March, so waiting until late March before filing can prevent the need to amend.

Key 1099-B fields and how they flow to Form 8949

1099-B BoxWhat it reportsWhere it goes
Box 1aDescription of propertyForm 8949, Column (a)
Box 1bDate acquiredForm 8949, Column (b)
Box 1cDate soldForm 8949, Column (c)
Box 1dProceedsForm 8949, Column (d)
Box 1eCost or other basisForm 8949, Column (e)
Box 1f/1gAccrued market discount / wash-sale loss disallowedForm 8949, Column (g) adjustment
Box 2Short-term or long-termDetermines Part I vs Part II of Form 8949
Box 3Basis reported to IRS (covered) or not (non-covered)Determines which Form 8949 checkbox applies

Form 8949 feeds its totals into Schedule D, which is where your net capital gain or loss lands on your Form 1040. IRS Form 8949 guidance explains the adjustment codes you use when your basis differs from what the broker reported. The most common: Code B (incorrect basis), Code E (excludable gain), and Code W (wash-sale loss disallowed).

Reconciliation checklist before you complete Form 8949:

  1. Match every sale on your 1099-B to a trade confirmation in your records.
  2. Verify the acquisition date and basis for each lot sold.
  3. Check for wash-sale flags (Box 1g) and confirm the disallowed amount matches your own records.
  4. Identify any non-covered lots and calculate basis independently.
  5. Note any discrepancies and prepare to enter an adjustment in Column (g) with the appropriate code.

How to keep records and reconcile your 1099-B step by step

Documents to keep

  • Trade confirmations for every purchase and sale
  • Monthly or quarterly account statements showing dividend reinvestments
  • Dividend and distribution notices (especially for return-of-capital classifications)
  • Transfer paperwork when moving accounts between brokers (the receiving broker needs your original basis)
  • Corporate action notices (splits, spin-offs, mergers)
  • Closing statements for real estate and other non-brokerage assets
  • FX confirmation or rate documentation for foreign purchases
  • Written lot-selection instructions you sent your broker before Specific ID trades

SIPC protects investors if a brokerage fails, but it does not reconstruct your cost-basis records. Keeping independent copies of trade confirmations is the only reliable safeguard.

Keep basis records for as long as you hold the asset plus at least six years after the year of sale. For inherited or gifted assets, that can mean decades.

Step-by-step reconciliation workflow

  1. Identify all sales from the prior year. Pull the complete list from your 1099-B and your own trade log.
  2. Map each sale to its tax lot(s). Determine which specific purchase(s) were sold, using your lot-selection instructions if you used Specific ID.
  3. Compute your adjusted basis. Apply the formula from Section 3, including all adjustments (reinvestments, splits, return of capital).
  4. Compare to the 1099-B figure. If Box 1e matches your calculation, you are done. If not, document the discrepancy.
  5. Resolve discrepancies with your broker. Contact the broker's tax department in writing, referencing the specific lot, date, and basis figure. Request a corrected 1099-B if the broker's figure is wrong.
  6. Enter adjustments on Form 8949. If the broker will not issue a correction, report your correct basis in Column (e), enter the difference as an adjustment in Column (g), and note the applicable code.

When to escalate: Contact your broker for data errors, missing lots, or unreported transfers. Consult a CPA or enrolled agent when you have inherited assets with complex estate valuations, wash-sale chains across multiple accounts, or any situation where the IRS could challenge your basis calculation.

You can verify your broker's reporting capabilities and find contact information through FINRA BrokerCheck.


What tools and workflows actually work for tracking cost basis

The right tool depends on how many accounts you have, how often you trade, and whether you hold non-standard assets like crypto, real estate, or foreign securities.

Tool categories

Manual spreadsheets work for investors with one or two accounts, few trades, and no dividend reinvestments. A spreadsheet with columns for ticker, lot date, shares, price, fees, and adjustments gives you full control but requires discipline to update after every transaction.

Broker account reports and tax-lot screens are the starting point for most investors. Most major brokerages display unrealized gain/loss by lot and export CSV files. The limitation is that they only cover assets held at that broker, and historical data often disappears when you transfer accounts.

Dedicated portfolio tracking apps consolidate multiple accounts, handle multi-currency positions, and automate dividend reinvestment tracking. For investors with more than two accounts or any foreign holdings, this category saves meaningful time at tax season. Look for apps that support tax-lot detail, not just aggregate position values.

Hands sorting financial statements on tabletop

Tax-prep software (such as TurboTax or H&R Block) can import 1099-B data directly from many brokers and walk you through Form 8949 entries. They are strong for filing but generally weak for ongoing basis maintenance throughout the year.

Checklist for selecting a tracking tool

  • Multi-account sync across banks and brokerages
  • Tax-lot level detail (not just aggregate position basis)
  • Dividend and reinvestment tracking with automatic lot creation
  • Historical FX rate support for foreign purchases
  • Corporate action handling (splits, spin-offs, mergers)
  • CSV import for transferred or legacy accounts
  • Export capability for tax-prep software

Monthly workflow to stay current

Check your accounts once a month: confirm any new purchases are recorded with the correct date and price, verify dividend reinvestments created new lots, and note any corporate actions. A quarterly pass should cover wash-sale checks, return-of-capital classifications from REIT or MLP distributions, and a reconciliation of account transfers. This 30-minute monthly habit prevents the year-end scramble that leads to errors.

Importing CSVs for transferred accounts: When you move assets from one broker to another, the receiving broker often lacks your original basis data. Export a CSV from the old broker before closing the account, import it into your tracking tool, and verify that lot dates and prices match your trade confirmations. The best net worth tracker apps support this import workflow and flag lots where basis data is missing.


How Evibe automates cost-basis tracking and reconciliation

Manual tracking works until it doesn't. The moment you add a second brokerage, start reinvesting dividends, or hold a foreign ETF, the spreadsheet approach starts generating errors faster than it catches them.

Evibe addresses the specific pain points that make basis tracking hard:

  • Automatic account sync across U.S. and Canadian banks and brokerages, so every new purchase, sale, and dividend hits your records in real time without manual entry.
  • Dividend tracking with lot-level detail, capturing each reinvestment as a separate tax lot with the correct date and price. The Evibe dividend tracker handles both executed and declared dividends, which matters for year-end reconciliation.
  • Multi-currency historical FX rates, so foreign purchases are recorded in USD at the correct exchange rate on the purchase date, not today's rate.
  • ETF-specific analytics, including tax-lot visibility for ETF positions, available through the Evibe ETF tracker.
  • Manual entry for custom assets (real estate, private equity, collectibles) where no broker feed exists, keeping your entire net worth in one place.
  • AI-driven analysis that flags portfolio-level risks and performance gaps, giving you context beyond raw basis numbers.

At tax time, this means your 1099-B reconciliation starts from a position of accuracy rather than reconstruction. Fewer manual adjustments, fewer missed reinvestments, and a clear audit trail if the IRS ever asks.


Why rigorous basis tracking matters more than most investors realize

Most investors treat cost basis as a tax-season problem. It isn't. It's a year-round discipline, and the investors who get it right consistently are the ones who make lot-selection decisions before they sell, not after.

The conventional wisdom is that your broker handles this. FINRA is direct on this point: brokers track only covered securities acquired in their own systems. Pre-2011 lots, transferred positions, and assets held outside a brokerage are entirely your responsibility. Relying on the 1099-B without reconciling your own records is how investors end up overpaying taxes on gains they already paid tax on through reinvested dividends.

The other underappreciated risk is method selection. Accepting a broker's FIFO default when you hold multiple lots at very different prices can cost you real money. Specific ID, used correctly and documented properly, gives you control over which gain you realize and when. That control compounds over time, particularly in taxable accounts where you are managing both return and tax drag simultaneously.

When in doubt, go to the primary sources: IRS Publication 550 for the rules, Form 8949 instructions for the mechanics, and a CPA or enrolled agent for anything involving inherited assets, complex corporate actions, or multi-year wash-sale chains.


Evibe keeps your basis current so tax season isn't a reconstruction project

Tracking cost basis manually across multiple accounts is the kind of work that feels manageable until it suddenly isn't. A dividend reinvestment here, a broker transfer there, a foreign ETF with a currency conversion, and by February you are rebuilding records from scratch instead of filing with confidence.

Evibe

Evibe consolidates every account, every asset class, and every dividend reinvestment into a single dashboard, with automatic syncing, historical FX rates, and tax-lot detail built in. The dividend tracker captures each reinvestment as a new lot the moment it settles. The ETF tracker gives you lot-level visibility across your ETF positions. And when you need to reconcile a 1099-B, your records are already there.

Start a 7-day free trial in the Evibe iOS or macOS app and see how much of the manual work disappears on day one. The tax guidance in this article points to IRS sources and does not replace advice from a qualified tax professional.


Sources

These are the primary sources to consult when you reconcile your records or prepare your return. Self-research is a reasonable starting point; for complex situations, a CPA or enrolled agent is the right call.

When to consult a professional: Inherited assets with estate valuations, wash-sale chains spanning multiple accounts or tax years, corporate mergers with complex basis allocations, and any situation where the IRS has contacted you about a prior return all warrant a CPA or enrolled agent, not self-research alone.

This article is general information, not a substitute for advice from a qualified financial advisor. Consult a qualified financial professional about your own circumstances before acting on anything here.