Skip to main content
AI-PoweredTax CalculatorsFree — No sign-up

Stock Cost Basis Calculator

After a 4:1 stock split, your cost per share is not your original purchase price -- it is one-quarter of it. Reinvested dividends also increase your basis because you already paid tax on that income. Getting this wrong means overpaying capital gains tax. Plug in your purchase details, splits, and dividends to see your true cost per share and estimated tax on any sale.

By SplitGenius TeamUpdated February 2026

Bought 100 shares at $50 ($5,000 basis), stock did a 2:1 split giving you 200 shares at $25 each—your total basis is still $5,000, but your cost per share is now $25 for tax purposes. Enter your purchase details, splits, and reinvested dividends to find your true cost basis and estimated capital gains tax.

Purchase Details

$

Used to determine holding period

$

Adjustments

$

Total DRIP reinvestments

e.g. 2 for 2:1 split, 0 for no split

Sale Details

$

Current or expected sale price

Leave blank to sell all adjusted shares

How This Calculator Works

1

Enter Your Details

Fill in amounts, people, and preferences. Takes under 30 seconds.

2

Get Fair Results

See an instant breakdown with data-driven calculations and Fairness Scores.

3

Share & Settle

Copy a shareable link to discuss results with everyone involved.

Frequently Asked Questions

People Also Calculate

Explore 182+ Free Calculators

Split rent, bills, tips, trips, wedding costs, childcare, and more.

Browse All Calculators

How Cost Basis Works

Cost basis is the original price you paid for an investment, adjusted for commissions, fees, stock splits, and reinvested dividends. The IRS uses your cost basis to determine your taxable gain or loss when you sell. Get this number wrong and you either overpay taxes or trigger an audit.

Your broker reports cost basis to the IRS on Form 1099-B, but only for shares purchased after specific dates (2011 for stocks, 2012 for mutual funds, 2014 for other securities). Older shares or transferred positions often show "noncovered," meaning you are responsible for tracking the basis yourself.

The formula is straightforward: Cost Basis = (Purchase Price × Shares) + Commissions + Fees. When you sell, Capital Gain or Loss = Sale Proceeds − Cost Basis of Shares Sold. A positive number means you owe taxes. A negative number means you can deduct the loss (up to $3,000 per year against ordinary income, with unlimited carry-forward).

Stock Split Adjustments

A stock split changes your share count and price per share but does not change your total cost basis. In a 2-for-1 split, your 100 shares become 200 shares and your $50 per share basis becomes $25 per share. The total $5,000 basis stays exactly the same.

Reverse splits work the opposite way. A 1-for-4 reverse split turns 400 shares at $5 into 100 shares at $20. Again, total basis does not change. Companies like Apple (4:1 in 2020), Tesla (3:1 in 2022), and Amazon (20:1 in 2022) have all done forward splits that required shareholders to adjust their per-share basis.

Split TypeOriginal SharesAfter SplitBasis/ShareTotal Basis
2:1 Forward100200$25.00$5,000
3:1 Forward100300$16.67$5,000
4:1 Forward100400$12.50$5,000
1:4 Reverse400100$50.00$5,000

All examples assume a $5,000 original investment. Total basis remains constant regardless of split ratio.

Reinvested Dividends Impact

Reinvested dividends increase your cost basis because you already paid tax on the dividend income in the year it was distributed. If you received $200 in dividends and reinvested them to buy more shares, your cost basis increases by $200. Forgetting to add reinvested dividends is one of the most common tax mistakes—it means you pay tax on that money twice.

DRIP (Dividend Reinvestment Plan) purchases often happen at fractional share prices on various dates throughout the year. Each reinvestment creates a new tax lot with its own purchase date and price. Over 10 or 20 years, a single stock position can have dozens of lots. Your broker tracks these for shares purchased after the coverage dates, but check your records for older holdings.

The IRS treats reinvested dividends as if you received cash and then bought shares. You report the dividend income on your return in the year received, and you add that amount to your cost basis. When you eventually sell, the higher basis reduces your capital gain.

Long-Term vs Short-Term Capital Gains

The holding period determines your tax rate, and the difference is substantial. Shares held for more than one year qualify for long-term capital gains rates: 0%, 15%, or 20% depending on your income. Shares held for one year or less are taxed as ordinary income, which can be as high as 37% for the top bracket.

Filing Status0% Rate15% Rate20% Rate
SingleUp to $47,025$47,026 – $518,900Over $518,900
Married Filing JointlyUp to $94,050$94,051 – $583,750Over $583,750
Head of HouseholdUp to $63,000$63,001 – $551,350Over $551,350

Source: IRS 2025 long-term capital gains rate thresholds. Short-term gains are taxed at your ordinary income rate (10% to 37%).

A practical example: you bought 200 shares at $30 each ($6,000 basis) and sold them 14 months later at $45 each ($9,000 proceeds). Your $3,000 gain is long-term. At the 15% rate, you owe $450. If you had sold one month earlier (at 13 months), the same $3,000 gain would be taxed as ordinary income. In the 22% bracket, that is $660—$210 more for waiting just 30 fewer days.

To estimate how capital gains affect your total tax picture, try the capital gains calculator. If you are sitting on losing positions and want to offset gains, the tax-loss harvesting calculator shows how much you can save.