Manufacturing Accounting Guide

How to Calculate Cost of Direct Materials Used

Use the calculator below to compute direct materials used from raw material inventory and purchase activity, then learn the complete accounting logic, formula, examples, and best practices in a detailed guide.

Direct Materials Used = Beginning Raw Materials Inventory + Net Raw Materials Purchases − Ending Raw Materials Inventory

Direct Materials Used Calculator

Enter values for the period. Leave unused fields as 0.

Choose display currency for results.
Value of raw materials at start of period.
Gross purchases during period.
Add costs to bring materials to your facility.
Subtract returned or credited materials.
Subtract supplier discounts related to purchases.
Value of raw materials on hand at end of period.

Complete Guide: How to Calculate Cost of Direct Materials Used

What Is Cost of Direct Materials Used?

Cost of direct materials used is the portion of raw materials inventory actually consumed in production during a period. In manufacturing accounting, this number is a key input to the cost of goods manufactured (COGM) schedule. It helps you measure how much material value moved from raw materials storage into work in process.

Direct materials are materials that become an identifiable part of the finished product. For example, lumber in furniture, steel in machinery, flour in bakery production, fabric in apparel, and semiconductor wafers in electronics are typical direct materials.

If a material is traceable to each finished unit and economically meaningful to track, it is usually treated as a direct material.

Direct Materials Used Formula

The standard formula for calculating cost of direct materials used is:

Direct Materials Used = Beginning Raw Materials Inventory + Net Raw Materials Purchases − Ending Raw Materials Inventory

Where:

Expanded formula:

Direct Materials Used = Beginning RM + Purchases + Freight-In − Returns & Allowances − Discounts − Ending RM

Step-by-Step Calculation Process

Step 1: Confirm beginning raw materials inventory. Use the prior period ending balance as your beginning figure.

Step 2: Add gross raw materials purchases. Include all purchases intended for production use.

Step 3: Add freight-in. Include inbound transportation, handling, and similar acquisition costs as part of materials cost.

Step 4: Subtract returns, allowances, and discounts. These reduce your net purchase cost and should not be overstated.

Step 5: Compute direct materials available for use. This is beginning inventory plus net purchases.

Step 6: Subtract ending raw materials inventory. The remainder is direct materials used in production.

Important: Do not confuse direct materials purchased with direct materials used. Purchases are procurement activity; used is actual consumption for production accounting.

Worked Example

A manufacturer reports the following monthly data:

Net purchases = 165,000 + 7,500 − 4,000 − 2,500 = $166,000

Direct materials available = 48,000 + 166,000 = $214,000

Direct materials used = 214,000 − 55,000 = $159,000

So, the cost of direct materials used for the month is $159,000.

Where Direct Materials Used Fits in Financial Statements

Direct materials used appears in the cost of goods manufactured schedule, not directly as a standalone line in external financial statements. It contributes to total manufacturing costs:

Total Manufacturing Costs = Direct Materials Used + Direct Labor + Manufacturing Overhead

Then total manufacturing costs flow into work in process accounting and eventually cost of goods sold (COGS) when finished units are sold. Accurate direct materials used improves gross margin quality and inventory valuation accuracy.

Common Mistakes and How to Avoid Them

1) Using purchases instead of usage. Many teams mistakenly plug purchases directly into COGM. Always adjust for beginning and ending raw materials inventory.

2) Ignoring freight-in. Inbound freight belongs in material acquisition cost under most standard practices.

3) Not netting returns and discounts. Overstated purchases produce inflated direct materials used and distorted product costs.

4) Weak inventory count controls. If ending inventory is inaccurate, direct materials used will be wrong by the same amount.

5) Incorrect material classification. Some items should be indirect materials and included in overhead, not direct materials.

Periodic vs. Perpetual Inventory Systems

Under a periodic system, direct materials used is commonly calculated at period-end using the inventory formula. Under a perpetual system, material issues to production are recorded continuously, but period-end adjustments are still often required for scrap, shrinkage, cut-off, and count differences.

Even with strong ERP systems, physical counts and reconciliation controls remain essential. A system entry is not a substitute for inventory reality.

KPIs and Operational Insights from Direct Materials Used

Tracking direct materials used over time helps finance and operations teams understand cost behavior, waste, and purchasing efficiency. Useful metrics include:

When these KPIs move unexpectedly, they can reveal supplier issues, process drift, planning inaccuracies, or production quality problems.

Monthly Close Checklist for Accurate Direct Materials Used

Frequently Asked Questions

Is direct materials used the same as direct materials purchased?

No. Purchased materials must be adjusted for inventory changes to determine what was actually used in production.

Does freight-in count in direct materials used?

Yes, freight-in related to acquiring raw materials is generally part of material cost and should be included in net purchases.

What if ending inventory is higher than beginning inventory?

That usually means some purchases were not consumed yet. Direct materials used can still be lower than purchases in that period.

Where do indirect materials go?

Indirect materials are usually recorded in manufacturing overhead, not direct materials used.

Can I calculate direct materials used weekly?

Yes. The same formula works for any period as long as beginning and ending inventory are measured consistently.

Final Takeaway

To calculate cost of direct materials used accurately, focus on three essentials: inventory discipline, correct net purchase calculation, and consistent period cut-off. The formula is simple, but precision depends on clean data and strong close controls. Use the calculator at the top of this page to produce a reliable figure quickly, then tie it into your cost of goods manufactured analysis for better pricing, margin management, and production decisions.