FIFO or specific-ID cost basis for a stock sale.
Open the Cost-Basis Lot Picker tool →When you sell part of a position you bought at different prices, which shares you sell changes your taxable gain. Two methods: FIFO sells your oldest lots first (the broker default), while specific identification lets you choose exactly which lots go, often to harvest losses or favor long-term shares. Enter each lot's shares, cost per share, and whether it's long-term (held more than one year), then a sale price.
We split the realized gain into short-term (taxed as ordinary income) and long-term (the preferential capital-gains rate), because the character matters as much as the amount. Feed the result into the Capital Gains tile to see the tax. Pure arithmetic on your numbers: confirm your broker's basis records, especially after splits or reinvested dividends.
Computed entirely on your device for U.S. taxes and benefits. Nothing is ever sent anywhere, and it is free forever. Educational information, not financial, tax, investment, or legal advice.