Where your stock profit comes from
Stock Calculator 2.6 added a cost basis calculator. Version 2.7 brings its results into a redesigned trade chart, with a reading guide in all 13 site languages.
Change the method, keep the trades
Enter your buys and sells once. FIFO assigns the oldest shares to each sale, LIFO the newest, and HIFO the shares with the highest cost per share. Average cost pools the purchases. The sale breakdown shows which lots each sale used and which shares you still hold.
Try three purchases of 100 shares at $50, $70 and $66 per share, followed by a sale of 100 at $80. With the remaining shares valued at $80 and zero fees, FIFO shows a realized gain of $3,000 and LIFO shows $1,400. Total profit is $5,400 either way, with different amounts still unrealized.
Read the trade chart
The solid line tracks your average cost. A bar at each sale shows the realized gain or loss. Entering Share price now adds a dashed price line and a shaded band for unrealized gain or loss. The lower bars show how many shares you held after each trade. Open How to read this chart for a guide to each mark.
The chart fits the width of your screen and uses the decimal places you choose. For the optional TradingView chart, select a US-listed stock from the search results, then open the chart. Your calculations use the prices you enter. See the changelog for both releases.