FIFO Inventory Cost Calculator
Allocate sold units to oldest inventory lots and separate cost of goods sold from ending inventory.
YOUR CALCULATION
Result
—
Calculation steps
Work through one step at a time or reveal the complete calculation. The steps use your current inputs.
How to calculate
Consume lots in entered order and preserve the costs of unsold units.
FIFO COGS=Σ oldest consumed quantity×its lot unit cost
Worked example
100 units at 5 and 80 units at 6, with 150 sold, give FIFO COGS 800 and 30 units remaining at 6.
Assumptions and input details
One interchangeable item, no sales returns, shrinkage, taxes, freight allocation or country accounting advice. Lots must be chronological; no financial account is accessed.
Using this calculator
Can I enter my own problem?
Yes. Replace the example values with your own inputs. The result, calculation steps, tables and applicable diagrams update from those inputs. Blank or invalid values clear the result; example values are never silently substituted for missing inputs.
Are the results exact?
Results use floating-point arithmetic and displayed rounding. Read the formula, assumptions and any stated data precision before interpreting the result.
Is my input uploaded?
The calculation runs in your browser. No account, file upload or external AI service is required. Inputs are not saved between page reloads.
Total buy-only share purchases, fees and current unrealized performance using your entered transaction history.
Estimate receivable, inventory and payable days using matching-period flows and average balances.
Calculate gross margin, price markup and contribution after entered selling fees. Reverse a target contribution margin to find the required selling price.
Reserved advertising space.