What this tool does
Costs sales on a last-in, first-out basis and reports COGS and closing inventory, using a model of two receipts and one sale.
How to use it
- Enter the first receipt’s quantity and unit cost.
- Enter the second receipt’s quantity and unit cost.
- Enter the quantity sold.
- Run it to get COGS and closing inventory.
Worked example
Receiving 100 at 10 and 100 at 12, then selling 150, draws from the later batch first: COGS is 100×12 + 50×10 = 1,700 and closing inventory is 500.
Calculation method
Cost of goods sold
min(sold,q2)*cost2+max(0,sold-q2)*cost1Ending inventory value
q1*cost1+q2*cost2-(min(sold,q2)*cost2+max(0,sold-q2)*cost1)Frequently asked questions
- Is LIFO allowed where I operate?
- This tool does not decide that. Accounting standards and tax rules differ on whether LIFO is permitted, so confirm with an accountant.
- Why is COGS higher than under FIFO?
- With rising costs, as in the example, the more expensive recent stock is expensed first. With falling costs the relationship reverses.
What this tool does not cover
Three or more batches, write-downs, returns, and multiple sales within the period are not handled.