Key takeaways
- Cost basis is generally what you paid for an investment, including purchase costs, and adjusted basis is the figure you use when you sell.
- Reinvested dividends usually increase basis; forgetting them is a common way people overstate capital gains.
- FIFO, specific identification, and average cost (for many mutual funds) can produce very different taxable gains on the same partial sale.
- A wash-sale disallowed loss is typically added to the basis of replacement shares, deferring the loss rather than erasing it.
- Inherited shares often receive a stepped-up (or stepped-down) basis to date-of-death value, while gifts usually carry over the donor's basis.
- Form 1099-B reports proceeds and, for covered securities, basis to you and the IRS, but you remain responsible for correct reporting.
You sell 50 shares of a stock you have owned for years. The brokerage shows a sale price of $8,000. Your tax software asks for cost basis. You stare at the screen. Was it $40 a share or $55? Did you buy all the shares on one day, or drip in purchases for a decade? Did reinvested dividends count? That blank box is not a trivia question. It is the number that decides whether you report a taxable gain of $2,000 or $5,000, and whether you overpay the IRS because you forgot what you already put in.
Cost basis is the tax system's way of measuring what you invested in an asset. For stocks, mutual funds, ETFs, and most other investments, basis starts as what you paid and then changes when life happens: commissions, reinvested dividends, stock splits, wash sales, gifts, and inheritances. Get the number right and your capital gain (or loss) is honest. Get it wrong and you either hand the government extra money or invite a mismatch with what your broker already reported.
This guide explains what cost basis is, how adjusted basis works, how FIFO, specific identification, and average cost treat different lots, how wash sales change basis, how gifts and inheritances reset or carry over basis, what Form 1099-B actually reports, and why tracking matters long before tax season. It is education for a 2026 U.S. audience using USD examples. It is not tax advice for your return. Rules have exceptions, and a tax professional is the right call when a large sale, an estate, or messy lots are on the line.
What Cost Basis Means in Plain English
IRS Publication 551 defines basis as the amount of your investment in property for tax purposes. You use basis to figure gain or loss when you sell or otherwise dispose of the property. For stocks and bonds you buy, basis is generally the purchase price plus costs of purchase such as commissions and recording or transfer fees. If you paid $4,950 for shares and $50 in commissions in an era when commissions still appeared as a separate line, your starting basis is typically $5,000.
Capital gain or loss is not the sale price alone. It is sale proceeds minus your adjusted basis (with some adjustments for selling costs). Sell for $7,000 with a $5,000 basis and you have a $2,000 gain. Sell for $4,000 with the same basis and you have a $1,000 loss. Until you sell, a rising price is usually just an unrealized gain. The IRS waits for a realization event. That is why buy-and-hold investors can defer tax for years, and why the basis you carry into the sale is so important when the sale finally happens.
Basis is personal to how you acquired the shares. Two neighbors can sell the same ticker on the same day at the same price and owe different tax because one bought earlier at a lower price, one inherited shares with a stepped-up basis, or one used a different lot selection method. The market price is shared. The basis story is not.
The Securities and Exchange Commission's Investor.gov materials on capital gains describe the everyday idea in investor language: profit when you sell for more than you paid. Publication 551 and related IRS guidance fill in the legal machinery behind that sentence. Both layers matter. The plain idea keeps you oriented. The IRS rules decide what you can put on Form 8949 and Schedule D.
Original Cost vs Adjusted Basis
Original cost is the starting line. Adjusted basis is the number you actually use when you sell. Between purchase and sale, events increase or decrease that starting line. Publication 551 walks through increases and decreases in detail for many kinds of property. For everyday stock and fund investors, the adjustments that show up most often look like this.
Common increases to basis
- Purchase commissions and fees that are part of acquiring the shares (when applicable under the rules for your transaction).
- Reinvested dividends and capital gain distributions. When a fund pays a taxable distribution and you reinvest it, you usually include that distribution in income for the year and add it to basis. Skip the basis add-back and you can pay tax twice: once on the distribution, again as an inflated capital gain later.
- Additional purchases of the same security create new lots with their own basis. Your position's total basis rises, but each lot still has its own history for identification methods.
- Certain corporate actions can require basis allocation across new shares (for example, nontaxable stock dividends or splits that change share count while preserving total basis).
Common decreases to basis
- Nontaxable return of capital distributions. Some funds and companies return capital. That amount generally reduces basis rather than counting as ordinary dividend income when received.
- Wash-sale adjustments work differently: a disallowed loss is added to the basis of replacement shares (see the wash-sale section below). The loss is deferred into a higher basis, not erased forever.
- For depreciable property outside the typical brokerage stock story, depreciation and casualty losses reduce basis. Most stock investors will not use those rules on listed shares, but Publication 551 covers them because basis is a general tax concept.
A worked example keeps the arithmetic honest. You buy 100 shares of Fund ABC for $50 each ($5,000). Over two years you reinvest $400 of taxable dividends into more shares. Your adjusted basis becomes about $5,400, not $5,000. Later you sell the entire position for $7,200. Your gain is roughly $1,800, not $2,200. That $400 difference is money you already recognized as income when the dividends were paid. Forgetting reinvestment is one of the most common household basis mistakes.
Lots, Holding Periods, and Why Methods Matter
If you buy the same security more than once, you own lots: bundles of shares with different purchase dates and different per-share basis. When you sell only part of the position, the tax code needs a rule for which lots left the account. That choice changes both the size of your gain or loss and whether the gain is short-term or long-term.
Holding period still matters enormously. Shares held more than one year generally produce long-term capital gain or loss when sold. Shares held one year or less generally produce short-term results taxed at ordinary income rates. Lot selection can pull older, long-term lots or newer, short-term lots depending on the method and your instructions to the broker. IRS Topic 409 and Publication 550 cover the capital gain framework; basis methods decide which dollars and which dates enter that framework.
FIFO: First In, First Out
FIFO means the shares you acquired first are treated as the shares you sold first, unless you adequately identify different shares. For many stock sales where you do not specify lots, FIFO is the default. If you bought 50 shares at $20 in 2018, another 50 at $40 in 2022, and you sell 50 shares in 2026 without identifying lots, FIFO typically treats the 2018 shares as sold.
FIFO can be helpful when early lots have a high basis (smaller gain) or when you want the oldest holding period. It can be painful when early lots have a very low basis and you are forced to realize a large long-term gain you might have preferred to defer by selling higher-basis shares instead. Default methods are convenient. They are not always tax-efficient.
Specific Identification
Specific identification lets you tell the broker which lots you are selling, as long as you adequately identify them under IRS rules and your broker's procedures. In practice that often means selecting lots in the brokerage interface before or at the time of the trade, or following the firm's documented lot-selection process so the trade confirms the lots you chose.
Why bother? Suppose you need cash and own three lots of the same ETF:
- Lot A: basis $30 per share (large embedded gain, long-term)
- Lot B: basis $55 per share (small gain, long-term)
- Lot C: basis $62 per share (small short-term loss)
If the market price is $60, selling Lot C can realize a short-term loss. Selling Lot B realizes a modest long-term gain. Selling Lot A realizes a large long-term gain. Specific identification is how thoughtful investors match the tax character of a sale to the year's plan: harvesting a loss, filling a lower capital-gains bracket, or avoiding a short-term gain when a long-term lot would do. Education, not a prescription: the right lot depends on income, other gains and losses, and goals.
You generally cannot wait until April to invent a story about which lots you meant. Identification has timing and documentation requirements. Brokerage lot tools exist because the IRS expects a real-time, adequate identification, not a rewrite after the fact.
Average Cost for Mutual Funds (and Certain DRPs)
Average cost is a special basis method widely used for mutual fund shares (and in related rules for certain dividend reinvestment plans). Instead of tracking every lot's exact purchase price for each sale, you average the cost of the shares in the account (under the method's rules) and apply that average to the shares sold. Brokerages often default mutual fund sales to average cost unless you elect otherwise under the firm's process.
Average cost simplifies life when you have years of automatic investments and reinvested dividends. It also removes some of the lot-picking flexibility specific identification offers for stocks. IRS materials note that average basis is generally not available for ordinary stock the way it is for mutual fund shares and certain DRP situations. Do not assume you can average everything.
Once average cost is in force for a mutual fund account under the applicable election and broker procedures, changing methods can be restricted. Read your broker's cost-basis settings before a large redemption. Switching after years of average-cost reporting is not always a free lunch.
Side-by-Side Math: Same Sale, Three Stories
Imagine you own 150 shares of a mutual fund bought in three equal lots of 50 shares:
- Lot 1: $40 per share (basis $2,000)
- Lot 2: $50 per share (basis $2,500)
- Lot 3: $70 per share (basis $3,500)
Total basis for 150 shares: $8,000. Average cost: about $53.33 per share. You sell 50 shares for $60 each ($3,000 proceeds).
- FIFO: sells Lot 1. Gain = $3,000 minus $2,000 = $1,000.
- Specific identification of Lot 3: Gain = $3,000 minus $3,500 = $500 loss.
- Average cost: Gain = $3,000 minus about $2,667 = about $333 gain.
Same ticker. Same sale price. Same number of shares. Three different tax results. That is why basis method is not paperwork trivia. It is the difference between booking a $1,000 gain and a $500 loss on an identical trade ticket.
Wash Sales: How a Disallowed Loss Raises Basis
The wash-sale rule stops you from claiming a tax loss if you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale. The idea is straightforward: the tax code does not want a paper loss while you never really leave the economic position.
What happens to the disallowed loss? It is generally added to the basis of the replacement shares. Example: you sell shares for a $400 loss, then buy substantially identical shares within the window. The $400 loss is disallowed now. Your new shares' basis increases by $400. When you eventually sell those replacement shares (without another wash-sale problem), that higher basis reduces future gain or increases future loss. The loss is deferred into basis, not vaporized.
Form 1099-B can show wash-sale loss disallowed in its dedicated box when the broker tracks it. Still, wash sales can span accounts in ways that surprise people, including related purchases in an IRA in some situations. Broker reporting helps. It is not a complete substitute for understanding the rule when you harvest losses across multiple accounts.
Tax-loss harvesting remains a common educational topic because losses can offset gains and, within annual limits, ordinary income. The wash-sale rule is the guardrail. Many investors who want market exposure while harvesting a loss look at a similar but not substantially identical fund during the waiting period. Whether two funds are substantially identical is a facts-and-circumstances question. This article will not pretend every pair of index funds is automatically safe or unsafe.
Gifts: Carryover Basis (With a Loss Twist)
When you receive shares as a gift, you generally take a carryover basis: your starting basis is the donor's adjusted basis. If your aunt's basis was $20 per share and she gifts you shares worth $55, your basis for figuring gain is usually still $20. Sell later at $60 and your gain is measured from that carried-over $20, not from the $55 value on the gift date.
Gifts have a special wrinkle for losses. If the fair market value at the time of the gift is lower than the donor's basis, a dual-basis rule can apply: your basis for figuring loss may be the lower fair market value at the gift date, while basis for figuring gain may still relate to the donor's basis. That rule exists to stop people from transferring built-in losses freely. Publication 551 explains gift basis in more depth than a summary article can. Large gifts also interact with gift-tax rules and annual exclusions, which are separate from basis but often arrive in the same conversation with a tax advisor.
Holding period for gifted property often includes the donor's holding period when your basis is determined by the donor's basis. When basis is determined by fair market value, holding period can start later. Details matter on the edge cases.
Inheritances and Stepped-Up (or Stepped-Down) Basis
Inherited property generally receives a basis equal to fair market value on the decedent's date of death (or on an alternate valuation date if the estate properly elects that method). People call this a step-up when the market value is higher than the decedent's old basis, which can erase decades of unrealized gain for heirs. It can also be a step-down if the market value is lower than the decedent's basis.
Example: a parent bought shares for $10,000 decades ago. At death the shares are worth $80,000. An heir who inherits them typically takes an $80,000 basis. Sell soon after for $81,000 and the taxable gain may be only about $1,000, not $71,000. That is one reason long-held appreciated assets are often discussed in estate conversations. Community property states and certain exceptions can change the picture. Publication 559 and Publication 551 are the IRS starting points for survivors and basis other than cost.
Do not confuse inheritance basis with gift basis. A lifetime gift usually carries the donor's basis forward. A transfer at death generally resets to date-of-death value. Families sometimes make expensive mistakes by gifting highly appreciated shares during life when holding until death would have produced a step-up. Whether that tradeoff is wise depends on many non-tax factors too. This is a mechanism briefing, not an estate plan.
What Your Broker Reports on Form 1099-B
Brokers report proceeds from sales on Form 1099-B (Proceeds From Broker and Barter Exchange Transactions). For covered securities, they also report cost or other basis, acquisition date information, whether the gain or loss is short-term or long-term, and wash-sale disallowance amounts when applicable. Covered securities generally include stocks acquired for cash after 2010, and mutual fund or certain DRP shares acquired after 2011, with nuances in the regulations.
Noncovered securities (often older lots acquired before those dates, among other categories) may show proceeds without a broker-reported basis, or with basis reported voluntarily. Box checkboxes on the form signal whether basis was reported to the IRS and whether the security was noncovered. Your job as the taxpayer is still to report the correct gain or loss. If the 1099-B basis is wrong, you generally still start from the form amounts and make the allowed adjustments on Form 8949 so your return reconciles to what the IRS already received from the broker.
Practical habits that prevent April panic:
- Download cost-basis reports during the year, not only in February.
- After transferring an account, confirm lots and covered/noncovered status moved correctly.
- Turn on or confirm your preferred default lot method before you sell.
- Keep records of reinvested dividends for older noncovered lots if the broker's history is incomplete.
- Compare the 1099-B to your own lot history when the numbers look off by more than a rounding error.
Broker tools are powerful. They are not infallible, especially after ACATS transfers, corporate actions, employee stock plan shares, or gifts recorded with missing donor basis. You remain responsible for the return.
Why Basis Tracking Matters Long Before You Sell
Basis is not only a tax-season chore. It shapes decisions all year.
- Which account to sell from. Inside a traditional IRA or 401(k), selling and rebuying typically does not create a current capital gain the way a taxable brokerage sale does. Basis tracking for capital gains is mostly a taxable-account problem. That is one reason asset location (what you hold where) matters.
- How much cash a sale actually frees. A $10,000 sale is not $10,000 of spendable, tax-free cash if $3,000 of it is taxable gain.
- Charitable giving of appreciated shares. Donating long-held appreciated stock to a qualified charity can be more tax-efficient than selling and donating cash, because you may avoid realizing the gain while deducting fair market value under the usual rules. Basis still matters for records and for deciding which lots to give.
- Rebalancing. Preferentially selling higher-basis lots can reduce the tax cost of bringing a portfolio back to target weights.
Household money skills reinforce investing skills. While you tidy basis settings in a brokerage, it also helps to keep credit costs from eating the cash you could invest. Some people use a tool such as WalletHub Premium to monitor scores and utilization so high-interest debt does not silently undo portfolio progress. Short-term cash you might need soon often belongs in something like a high-yield savings account rather than in shares you would hate to sell in a downturn just to cover a surprise bill.
Inflation, Compounding, and the Quiet Pressure on Old Basis
Basis is a historical dollar amount. Decades of inflation and compounding can leave long-held shares with a basis that looks tiny next to today's price. That is not a bug in the tax code's memory. It is why deferral is valuable and why a large sale of a low-basis position can create a surprisingly large tax bill even when you feel like you are only "taking some chips off the table."
Use the interactive tools below as education, not forecasts. The inflation slider shows how purchasing power of a fixed dollar amount erodes over years. The compound slider shows how contributions and returns can grow a balance. Together they explain why an old $5,000 basis can sit under a much larger market value after a long bull stretch, and why knowing that basis before you sell is part of planning the tax, not an afterthought.
A Simple Annual Basis Checklist
- Confirm default lot method on each taxable brokerage (FIFO, specific lot, average cost for funds, and so on).
- After every partial sale, save the trade confirmation that shows which lots were closed.
- Reinvest dividends on purpose, and verify reinvestment purchases appear in the basis ledger.
- When you inherit or receive a gift, request date-of-death values or donor basis in writing and store them with the account.
- In January or February, open every 1099-B as soon as it posts. Flag noncovered lots and wash-sale lines early.
- Before a large planned sale, estimate gain under two lot methods so you are not surprised by FIFO defaults.
None of these steps require you to become a tax lawyer. They require the same mild obsession you already apply to passwords and insurance renewals: a system that keeps one important number from going missing.
Putting It Together
Cost basis is your investment stake for tax purposes. Adjusted basis starts with cost and moves with reinvestments, returns of capital, wash-sale deferrals, and other events Publication 551 catalogs. When you sell part of a position, FIFO, specific identification, or average cost (for eligible mutual fund and certain DRP shares) decide which dollars leave and which holding periods attach. Gifts usually carry basis over. Inheritances often reset basis to date-of-death value. Form 1099-B reports proceeds and, for covered securities, basis and term to you and the IRS. Your records still matter when the form is incomplete or wrong.
If you remember only five ideas, remember these. Know what you paid and what you reinvested. Know which lots you are selling before you click sell. Respect wash-sale timing when you harvest losses. Treat gifted and inherited shares as different basis stories. Read the 1099-B early and reconcile it. Do that, and cost basis stops being a mystery box in tax software and becomes what it always was: the honest measure of what you put in, so you only pay tax on what you truly took out.
Most investors cannot pass a basic money test. Can you?
The market charges tuition for every gap in your knowledge. The Financial IQ Test measures what you actually know across investing, banking, credit, and retirement, then shows you exactly which gaps to close before they get expensive.
Test your Financial IQQuestions people ask
What is cost basis in investing?
Cost basis is the amount of your investment in an asset for tax purposes, usually what you paid plus certain purchase costs. When you sell, your capital gain or loss is generally the sale proceeds minus your adjusted basis. Keeping that number accurate is how you avoid overpaying tax or mismatching broker reports.
What is the difference between cost basis and adjusted basis?
Cost basis is the starting investment amount. Adjusted basis is that starting amount after increases and decreases such as reinvested dividends, return-of-capital distributions, and certain wash-sale adjustments. You use adjusted basis to figure gain or loss on a sale.
Should I use FIFO or specific identification when I sell stock?
FIFO is often the default when you do not identify lots. Specific identification lets you choose which lots to sell if you adequately identify them with your broker. The better educational choice depends on whether you want to realize a smaller gain, a loss, or a long-term holding period. Set the method before the trade; do not invent lots after the fact.
Can I use average cost for individual stocks?
Average cost is generally available for mutual fund shares and certain dividend reinvestment plan situations under IRS rules. It is not the normal method for ordinary shares of stock, which typically use FIFO or specific identification. Check your broker's cost-basis settings for each holding type.
How does a wash sale change my basis?
If a loss is disallowed because you bought the same or a substantially identical security within the 30-day wash-sale window, that disallowed loss is generally added to the basis of the replacement shares. You do not deduct it now, but the higher basis affects a future sale.
Do inherited stocks get a stepped-up basis?
In many cases, yes: basis is generally fair market value on the decedent's date of death (or an alternate valuation date if elected). That can raise or lower basis relative to what the decedent paid. Gifted shares are different and usually carry over the donor's basis, with special rules when FMV is lower at the gift date.
Keep reading

How to Choose a Brokerage Account in 2026: A Practical Guide

Dividend Investing for Beginners: Income You Can Actually See

Dollar-Cost Averaging: The Math, the Myths, and When It Wins
The Flourish Letter
One smart money idea each week, charts included. Join free and get the printable 2026 Money Calendar in your welcome email.
