Calculator Factory
← All calculators
Accounting

Inventory Valuation Calculator

Featured

Calculate ending inventory and COGS using FIFO or weighted-average cost flow assumptions with purchase layer detail.

Save or share your results

Cost of goods sold

$3,400

Ending inventory

$2,100

Average unit cost

$14

Decision support

Interpretation

FIFO valuation: COGS of $3,400 on 300 units sold; ending inventory $2,100 (150 units remaining).

Assumptions

FIFO cost flow assumption. Excludes freight, shrinkage adjustments, and LCM write-downs.

What to do next

RecommendedRisk levelLowConfidenceMedium

Recommended action

Compare COGS under your elected method to gross margin targets. Document layer consumption for audit support.

COGS
$3,400
Ending inventory
$2,100
Valuation insight
FIFO COGS is lower than a simple average-cost estimate by about $266.67 — older,…

Why

FIFO yields COGS of $3,400 and ending inventory of $2,100.

Next steps in your workflow

Logical follow-on calculators based on what you just calculated.

Visual insights

COGS vs ending inventory

Cost of goods sold compared to remaining inventory value.

$0$1,133$2,267$3,400COGS: $3,400COGSEnding inventory: $2,100Ending inventoryCategoryAmount ($)
View chart data
CategoryAmount
COGS$3,400
Ending inventory$2,100

Detailed results

Valuation comparison
FIFO COGS is lower than a simple average-cost estimate by about $266.67 — older, lower-cost layers were consumed first.
Margin implication
Under FIFO during inflation, COGS reflects older inventory first, which can temporarily inflate reported gross margin versus weighted average.

Inventory valuation method affects COGS, gross margin, and balance sheet carrying value. This calculator applies FIFO (first-in, first-out) or weighted-average cost flow to beginning inventory and up to three purchase layers — useful for controllers comparing methods and bookkeepers reconciling perpetual records.

How to use this calculator

  1. Select FIFO or weighted-average valuation.
  2. Enter beginning inventory units and unit cost.
  3. Enter purchase layers (units and unit cost for each receipt).
  4. Enter units sold during the period.
  5. Review COGS, ending inventory, remaining layers, and margin implications.

Formula

FIFO: COGS uses the oldest layers first; ending inventory reflects most recent costs. Weighted average: average unit cost = total cost ÷ total units; COGS = units sold × average cost; ending inventory = remaining units × average cost.

Example

With 100 units at $10, purchases of 200 at $12 and 150 at $14, and 300 units sold, FIFO COGS consumes beginning and earlier purchase layers first; weighted average smooths all costs into one average.

Frequently asked questions

When is FIFO preferred?

FIFO is common under IFRS and permitted under U.S. GAAP. During inflation it assigns older, lower costs to COGS, which can increase reported gross margin versus LIFO or weighted average.

When is weighted average used?

Weighted average is typical for fungible goods, process costing environments, and ERP systems that update average cost on each receipt.

Can I model LIFO here?

This calculator supports FIFO and weighted average only. LIFO is U.S.-specific and requires layer tracking policies beyond this scope.

What if units sold exceed available inventory?

The calculator validates that units sold do not exceed total units on hand. Negative inventory is not permitted.

Related calculators

Workflow-ordered tools and topical matches for deeper analysis.