Fractional Share Cost Basis Calculator
Estimate cost basis, gain or loss, and a quick tax projection for a partial share sale using FIFO or average cost logic.
Purchase Lots (up to 4 lots)
Transaction Breakdown
How to Calculate Cost Basis of Fractional Shares Like a Pro
Fractional share investing has turned portfolio building into a precision process. Instead of buying only whole shares, investors can buy 0.25, 0.75, or 1.347 shares at a time. This is powerful for dollar-cost averaging, dividend reinvestment plans, and portfolios where every dollar is allocated intentionally. But fractional ownership adds complexity when you sell, because tax reporting still expects accurate lot tracking and basis calculations down to the cent. If you do not calculate your cost basis correctly, your reported gain or loss can be wrong, and that can create filing issues.
Cost basis is generally your purchase amount, adjusted for fees and certain corporate actions. For fractional shares, the concept does not change. The execution does. You still need to identify what you sold, but now the shares sold can include partial amounts from one lot or multiple lots. In practice, this means that basis accounting becomes detail-heavy very quickly, especially if you have frequent purchases, recurring deposits, and DRIP reinvestments.
This guide walks through the practical steps, formulas, and common errors in calculating cost basis for fractional shares. It also explains when FIFO and average cost can produce very different results, and why recordkeeping is the most important risk control.
Core Formula for Fractional Share Cost Basis
The core math is simple. The challenge is selecting the correct shares or lots to which you apply the formula.
- Proceeds = (shares sold × sale price per share) – selling fees
- Cost basis = sum of basis allocated from sold shares
- Capital gain or loss = proceeds – cost basis
For a single lot sale, cost basis can be:
- Lot basis used = (shares sold from that lot × lot price per share) + proportional lot fee
If you sell 0.4 shares and your lot had 2 shares bought at $100, then basis from that lot is 0.4 × $100 = $40, plus any applicable fee allocation. If your broker included a purchase fee when acquiring that lot, you spread that fee proportionally by shares.
Why Fractional Shares Require Better Records
When investors only buy whole shares a few times per year, manual basis tracking is manageable. Fractional investing changes that because every automated contribution can create a new lot with a different price and timestamp. Over a year, one ticker may have dozens of tiny lots. Selling even 1.5 shares could involve a long chain of sub-lot allocations.
Minimum data you should keep for each lot
- Trade date (not just settlement date)
- Shares acquired, including decimals
- Price per share
- Commissions or fees paid
- Corporate action adjustments if any (splits, mergers, spin-offs)
Most brokers provide Form 1099-B and basis tracking for covered securities, but you should still maintain your own records and verify them. Data mismatches can happen after account transfers, DRIP transitions, or corporate events.
FIFO vs Average Cost for Fractional Share Sales
Two common approaches appear in retail workflows: FIFO and average cost. FIFO is broadly used for stocks and ETFs when specific lot identification is not selected. Average cost is often associated with mutual funds and certain DRIP accounting contexts. You should verify allowed methods with your broker and account type before filing.
| Method | How Basis Is Assigned | Typical Use Case | Impact on Reported Gain | Operational Complexity |
|---|---|---|---|---|
| FIFO | Oldest lots are sold first | Default for many stock/ETF accounts | Can create higher or lower gains depending on older purchase prices | Moderate, requires lot chronology |
| Average Cost | Total cost divided by total shares, then multiplied by shares sold | Common in mutual fund style accounting | Smooths basis across lots, reduces lot-level volatility | Low to moderate, but method elections matter |
In rising markets, FIFO often pulls in older, lower-cost shares, which can increase taxable gains. In declining markets, FIFO may pull in higher-cost older lots, potentially reducing gains or increasing losses. Average cost can reduce extremes, but method eligibility and election timing are important tax details.
Sample Comparison Using Real Numbers
Assume you accumulated 3.50 shares across three lots:
- 1.00 share at $100.00
- 1.50 shares at $140.00
- 1.00 share at $180.00
Total shares = 3.50. Total cost = $490.00. You sell 1.75 shares at $200.00 and pay a $1.00 sale fee. Proceeds are $349.00.
| Scenario | Basis Calculation | Cost Basis | Proceeds | Capital Gain | Est. Tax at 15% |
|---|---|---|---|---|---|
| FIFO | 1.00×100 + 0.75×140 | $205.00 | $349.00 | $144.00 | $21.60 |
| Average Cost | (490 ÷ 3.50) × 1.75 | $245.00 | $349.00 | $104.00 | $15.60 |
This comparison shows why method selection can materially shift taxable outcomes, even when the sale size and sale price are identical.
Regulatory and Tax Metrics That Matter
Several fixed policy metrics can affect how you interpret or report gains tied to fractional shares. The numbers below are widely referenced in U.S. tax and market rules and are useful for planning.
| Rule Metric | Current Figure | Why It Matters for Basis and Tax Planning | Primary Source |
|---|---|---|---|
| Long-term holding threshold | More than 1 year | Determines if gain is typically taxed at long-term rates | IRS |
| Federal long-term capital gain rates | 0%, 15%, 20% | Applies to many qualifying long-term gains | IRS |
| Net Investment Income Tax | 3.8% | Can add extra federal tax at higher income levels | IRS |
| Wash sale window | 30 days before and after sale | Can defer losses if substantially identical shares are repurchased | IRS |
| U.S. equity settlement cycle | T+1 | Affects timing mechanics and cash flow assumptions | SEC |
Authoritative references: IRS Publication 550 (.gov), IRS Capital Gains Topic 409 (.gov), and SEC Investor Education materials (.gov).
Step-by-Step Workflow for Accurate Fractional Basis
1) Export your transactions
Start from broker history, not memory. Pull all buys, DRIP credits, transfers, and adjustments. If you transferred accounts, confirm whether basis moved correctly.
2) Normalize lot data
For each lot, calculate adjusted lot cost including eligible fees. Keep a consistent decimal policy for shares and dollars.
3) Decide method before sale reporting
If specific lot identification is available and documented, use it intentionally. If not, your account may default to FIFO. Average cost treatment should align with account and security eligibility.
4) Allocate sold shares with precision
If you sold 1.237 shares, do not round to 1.24 internally. Keep high precision for internal calculations and only round at reporting output where required.
5) Reconcile with 1099-B
Before filing, compare your computed basis to broker-reported basis. If there is a mismatch, investigate dates, fees, and action adjustments immediately.
Common Errors Investors Make with Fractional Share Basis
- Ignoring fees: Buy and sell fees can materially shift gain on small fractional trades.
- Mixing methods: Switching from FIFO to average cost without proper election documentation can cause reporting inconsistency.
- Rounding too early: Early rounding compounds errors across many micro-lots.
- Forgetting DRIP lots: Every reinvested dividend can create a new lot and new basis.
- Missing corporate actions: Splits and spin-offs can alter basis per share and lot quantities.
- Assuming broker data is always perfect: Transfers and legacy records can carry gaps.
Advanced Notes: DRIP, Wash Sales, and Multi-Account Risk
Fractional investors often run DRIP strategies in taxable accounts. This can unintentionally increase wash sale complexity because frequent reinvestment purchases occur near loss-harvesting sales. If substantially identical shares are repurchased within the wash sale window, losses can be disallowed and added to basis of replacement shares. The math still works, but records must be updated correctly.
Another issue appears when investors hold the same ticker across multiple taxable accounts. Lot identification and wash sale interactions can become account-spanning. A consolidated ledger is often the safest practice for active investors using fractional entries.
How to Use the Calculator Above Effectively
- Enter your sale details: shares sold, sale price, and one-time sale fee.
- Enter each purchase lot with share count, price, date, and any buy fee.
- Select FIFO or Average Cost from the method menu.
- Click Calculate to view proceeds, basis, gain or loss, and an estimated tax figure.
- Use the chart to visualize whether your proceeds are mostly return of capital or true gain.
This tool is ideal for planning and reconciliation. For formal filing, align final numbers with brokerage tax forms and your tax professional’s guidance.
Final Takeaway
Calculating cost basis of fractional shares is not conceptually hard, but it is detail-sensitive. Precision in lot records, consistency in method selection, and proper fee treatment are the difference between accurate tax reporting and expensive corrections. Investors who automate purchases should assume they are creating a high-lot environment and build a repeatable reconciliation process now, before filing season arrives.
Tax disclaimer: This calculator and guide are for educational use and planning. Tax treatment depends on your jurisdiction, account type, elections, income, and filing status. Consult a qualified tax professional for advice specific to your situation.