🏭 Accounting guide

How to Calculate Direct Materials Used

Direct materials used is the quantity — and cost — of raw materials consumed during a production period. This guide covers the direct materials formula, a full inventory waterfall, cost of direct materials used, four worked examples across different scenarios, variance analysis, and the most common mistakes in cost accounting for materials.

Last updated: March 28, 2026

What are direct materials used?

Direct materials are raw materials that become part of the finished product and can be directly and economically traced to it. Direct materials used is the quantity of those materials actually consumed during a production period — not everything purchased, and not everything still sitting in the storeroom.

The distinction between purchased, available, and used is at the core of materials accounting. A manufacturer might purchase 10,000 units of raw steel in a month, have 1,500 left over from the prior month, and end the month with 2,000 on hand. That means 9,500 units were actually used in production — not 10,000.

This guide
Direct Materials

Raw materials traced directly to the product — steel, fabric, wood, chemicals. The cost varies directly with production volume.

Related cost
Direct Labor

Wages paid to workers directly involved in production. Together with direct materials, forms the "prime cost" of a product.

Third component
Manufacturing Overhead

Indirect costs — factory rent, utilities, depreciation. Not directly traceable to one unit but allocated across production.

Direct materials used feeds into Cost of Goods Manufactured (COGM), which in turn feeds into Cost of Goods Sold (COGS) on the income statement. Getting the materials figure right is therefore foundational to accurate product costing.

Direct materials used formula

The standard formula uses a beginning-to-ending inventory flow to determine how much material was consumed:

Direct Materials Used = Beginning Raw Materials + Purchases − Ending Raw Materials
Beginning Raw Materials = inventory on hand at period start
Purchases = raw materials bought during the period
Ending Raw Materials = inventory on hand at period end
Result = units (or cost) of materials consumed in production

The logic is simple: you started with some stock, you added more by purchasing, and whatever is not left at the end must have been used. This is the same flow as any inventory movement calculation.

Full inventory waterfall

For a manufacturer with $18,000 in beginning materials, $95,000 in purchases, and $14,000 in ending materials:

Beginning raw materials inventory $18,000
+ Raw materials purchased during period $95,000
= Raw materials available for use $113,000
Ending raw materials inventory $14,000
= Direct materials used in production $99,000

To calculate cost of direct materials used

When working in units rather than dollars, multiply the units used by the cost per unit to get the total cost of direct materials used:

Cost of Direct Materials Used = Units Used × Cost per Unit

How to calculate direct materials used — step by step

1
Identify the beginning raw materials inventory. This is the value of raw materials on hand at the start of the accounting period — typically sourced from the prior period's ending balance or the opening balance sheet. Use the same unit (dollars or quantity) throughout.
2
Add all raw material purchases during the period. Include all materials received and put into inventory — whether paid for yet or not (under accrual accounting). Do not include indirect materials like lubricants, cleaning supplies, or small consumables that are treated as overhead.
3
Calculate raw materials available for use. Add beginning inventory to purchases: this is the total materials pool available to production during the period. Example: $18,000 + $95,000 = $113,000 available.
4
Determine the ending raw materials inventory. Count or value the raw materials still on hand at the end of the period. This requires a physical count or a reliable perpetual inventory system. The valuation method — FIFO, LIFO, or weighted average — affects this number.
5
Subtract ending inventory from available materials. The result is direct materials used: Available − Ending = Used. Example: $113,000 − $14,000 = $99,000 in direct materials consumed during the period.
6
Feed the result into COGM. Direct materials used is the first input in the Cost of Goods Manufactured schedule. It combines with direct labor and manufacturing overhead to build total manufacturing cost, which then flows into finished goods inventory and ultimately Cost of Goods Sold.

Worked examples

Four scenarios across manufacturing, job-order, and standard costing contexts.

Example 1 · Basic manufacturer

Single-material production

Beginning: $12,000 · Purchased: $68,000 · Ending: $9,500

Available = $12,000 + $68,000 = $80,000
Used = $80,000 − $9,500 = $70,500

✓ $70,500 in direct materials consumed this period.

Example 2 · Unit-based costing

Units used × cost per unit

Beginning: 2,000 lb · Purchased: 15,000 lb · Ending: 3,200 lb · Cost: $4.50/lb

Units used = 2,000 + 15,000 − 3,200 = 13,800 lb
Cost = 13,800 × $4.50 = $62,100

→ 13,800 lb used at $62,100 total materials cost.

Example 3 · Multiple materials

Two-material product

Material A: Begin $5,000 / Buy $22,000 / End $4,200 = $22,800 used. Material B: Begin $3,100 / Buy $18,500 / End $2,600 = $19,000 used.

Total DM used = $22,800 + $19,000 = $41,800

✓ Calculate each material separately, then sum.

Example 4 · Zero beginning inventory

New production run

No beginning stock. Purchased $45,000. Ending inventory: $6,800.

Available = $0 + $45,000 = $45,000
Used = $45,000 − $6,800 = $38,200

→ Common for new product lines or first production run.

Cost of direct materials used — the full calculation

In a full cost accounting context, "direct materials used" appears as a dollar figure in the Cost of Goods Manufactured (COGM) schedule. Here is how the cost builds from units through to finished goods:

Direct materials used (units or lbs) 13,800 lb
× Standard or actual cost per unit $4.50 / lb
= Cost of direct materials used $62,100

This $62,100 then flows into the COGM schedule alongside direct labor cost and applied manufacturing overhead. The total manufacturing cost is added to beginning Work in Process (WIP) and ending WIP is subtracted to arrive at Cost of Goods Manufactured.

COGM = Direct Materials Used + Direct Labor + Manufacturing Overhead + Beginning WIP − Ending WIP

Direct materials variance analysis

In standard costing systems, companies compare the actual cost of materials used against the standard cost that should have been incurred. The difference is split into two variances:

Variance What it measures Formula Direction
Price variance Did we pay more or less per unit than the standard price? (Actual Price − Std Price) × Actual Qty Fav if actual < std
Quantity / Usage variance Did we use more or fewer units than the standard quantity? (Actual Qty − Std Qty) × Std Price Fav if actual < std
Total materials variance Overall difference between actual and standard materials cost Price variance + Quantity variance Sum of both

A favorable variance means actual cost was lower than standard. An unfavorable variance means actual cost exceeded standard. Isolating price from quantity variance helps management identify whether the problem is in procurement (price) or in the production process (usage).

Common mistakes to avoid

  • Confusing purchased with used. Purchases increase the materials pool; direct materials used is what actually flowed into production. These are only equal if beginning and ending inventories are both zero.
  • Including indirect materials in the direct materials figure. Consumables like machine oil, cleaning supplies, and small fasteners are manufacturing overhead — not direct materials — because they cannot be economically traced to individual units.
  • Using different valuation methods inconsistently. If you use FIFO for beginning inventory, you must use FIFO for ending inventory in the same calculation. Mixing FIFO and LIFO produces an incorrect materials used figure.
  • Forgetting to include freight-in as part of materials cost. The cost of getting materials to the factory is typically added to the purchase price. Omitting it understates the true cost of direct materials used.
  • Using purchase orders instead of goods received. Under accrual accounting, purchases are recorded when materials arrive and are accepted — not when the PO is raised or when the invoice is paid.
  • Skipping physical inventory counts. A perpetual system can accumulate errors over time. Periodic physical counts are needed to catch shrinkage, spoilage, or recording errors that make the ending inventory figure unreliable.

FAQ

What is direct materials used?

Direct materials used is the quantity (or dollar cost) of raw materials actually consumed in production during an accounting period. It is calculated as beginning raw materials inventory plus purchases minus ending raw materials inventory.

What is the difference between direct materials purchased and direct materials used?

Purchased refers to materials acquired during the period. Used refers to materials actually consumed in production. The difference is captured in the change in raw materials inventory — if ending inventory is higher than beginning, you used less than you bought; if lower, you used more.

Are direct materials the same as raw materials?

Not exactly. Raw materials is a broader category that includes both direct materials (traceable to a product) and indirect materials (manufacturing overhead). Direct materials is a subset — the portion of raw materials that can be economically traced to specific units of output.

How does direct materials used flow into financial statements?

Direct materials used feeds into the Cost of Goods Manufactured (COGM) schedule — combined with direct labor and manufacturing overhead, adjusted for WIP inventory. COGM then flows into Cost of Goods Sold on the income statement when finished goods are sold.

What is the direct materials quantity variance?

It is the difference between actual materials used and the standard quantity that should have been used for actual output, multiplied by the standard price. A favorable variance means less material was used than expected; unfavorable means more was used. This variance reflects production efficiency, not purchasing price.

Can direct materials used be higher than purchases in a period?

Yes — if beginning inventory was large relative to ending inventory. The calculation pulls from both what was already on hand and what was bought during the period. A production surge can consume more than the period's purchases by drawing down prior stock.