How to Calculate Cost of Goods Sold Under Variable Costing
Use this premium calculator to estimate variable costing COGS, ending inventory, and variable cost of goods manufactured. Enter your production, sales, and per-unit manufacturing data, then compare FIFO and weighted average methods instantly with a live chart.
Variable Costing COGS Calculator
Results
Enter your numbers and click Calculate Variable COGS to see COGS, ending inventory, and a visual breakdown.
Expert Guide: How to Calculate Cost of Goods Sold Under Variable Costing
Cost of goods sold under variable costing is one of the most important concepts in managerial accounting because it isolates the manufacturing costs that truly vary with production. Instead of assigning both variable and fixed manufacturing overhead to each unit, variable costing treats only variable manufacturing costs as inventoriable product costs. That means direct materials, direct labor, and variable manufacturing overhead are included in inventory and later become part of cost of goods sold when the units are sold. Fixed manufacturing overhead, by contrast, is expensed in the period incurred rather than being attached to unsold inventory.
If you are trying to understand how to calculate cost of goods sold under variable costing, the central formula is straightforward:
Variable Cost of Goods Sold = Beginning Finished Goods Inventory at Variable Cost + Variable Cost of Goods Manufactured – Ending Finished Goods Inventory at Variable Cost
That high-level formula matters because it keeps your inventory valuation and cost of goods sold tied only to variable manufacturing activity. This is especially useful for internal decision-making, contribution margin analysis, break-even planning, special-order pricing, and short-run profitability studies. It can also help managers avoid the distortion that sometimes appears under absorption costing when fixed manufacturing overhead gets deferred in inventory.
What Counts as Product Cost Under Variable Costing?
Under variable costing, only manufacturing costs that change with output are inventoried. In practice, that normally includes:
- Direct materials used to manufacture each unit.
- Direct labor if labor cost rises with production volume.
- Variable manufacturing overhead such as supplies, power tied to machine use, and some indirect labor that varies with throughput.
Costs that are not included in inventory under variable costing include:
- Fixed manufacturing overhead, such as factory rent, salaried plant supervision, and depreciation not driven by output.
- Variable selling expenses.
- Fixed selling and administrative expenses.
- General administrative overhead unrelated to production.
This distinction is critical. Many errors happen because teams accidentally include selling expenses or fixed plant overhead in per-unit variable manufacturing cost. For a variable costing COGS calculation, those items stay out.
Step-by-Step Formula for Variable Costing COGS
- Calculate variable manufacturing cost per unit:
Direct Materials + Direct Labor + Variable Manufacturing Overhead - Determine beginning finished goods inventory cost at variable cost.
- Compute variable cost of goods manufactured:
Units Produced x Current Variable Manufacturing Cost per Unit - Calculate goods available for sale:
Beginning Inventory Cost + Variable Cost of Goods Manufactured - Determine ending finished goods inventory at variable cost using your inventory flow assumption, such as FIFO or weighted average.
- Subtract ending inventory from goods available for sale to get variable cost of goods sold.
Simple Example
Suppose your business has the following monthly production data:
- Beginning finished goods: 200 units at $18.50 variable cost each
- Units produced: 1,200
- Units sold: 1,100
- Current direct materials: $9.25 per unit
- Current direct labor: $5.10 per unit
- Current variable manufacturing overhead: $3.40 per unit
Current variable manufacturing cost per unit equals:
$9.25 + $5.10 + $3.40 = $17.75 per unit
Variable cost of goods manufactured equals:
1,200 x $17.75 = $21,300
Beginning inventory value equals:
200 x $18.50 = $3,700
Goods available for sale equals:
$3,700 + $21,300 = $25,000
Next, value ending inventory. If you use FIFO and sell 1,100 units, the first 200 units sold come from beginning inventory and the next 900 come from current production. That leaves 300 units from current production in ending inventory:
Ending inventory = 300 x $17.75 = $5,325
Therefore:
Variable COGS = $25,000 – $5,325 = $19,675
That is the cost of goods sold under variable costing. If you also had variable selling and administrative costs, those would be reported separately as period costs based on units sold, but they would not be added to COGS.
FIFO vs Weighted Average Under Variable Costing
Variable costing answers the question of which costs belong in inventory. Inventory flow assumptions answer the separate question of which unit costs are assigned to units sold versus units still on hand. Two common methods are FIFO and weighted average.
- FIFO assumes beginning inventory sells first. This often gives a clearer view of current production cost because ending inventory reflects more recent unit costs.
- Weighted average blends beginning inventory cost and current production cost into one average unit cost for all available units.
| Method | How Units Are Costed | Best Use Case | Managerial Effect |
|---|---|---|---|
| FIFO | Beginning inventory costs flow to COGS first; recent costs remain in ending inventory. | Useful when management wants inventory close to current production economics. | COGS may differ noticeably when costs are rising or falling period to period. |
| Weighted Average | Beginning inventory and current production costs are pooled and averaged. | Useful when cost layers are less important than overall average unit economics. | Smooths cost fluctuations and may simplify internal reporting. |
How Variable Costing Differs from Absorption Costing
The biggest conceptual difference between variable costing and absorption costing is fixed manufacturing overhead. Under absorption costing, fixed manufacturing overhead becomes part of product cost and is included in inventory until the related units are sold. Under variable costing, fixed manufacturing overhead is treated as a period expense immediately.
That means when production exceeds sales, absorption costing can temporarily report higher profit because some fixed factory cost sits in ending inventory rather than flowing through the income statement. Variable costing does not create that deferral effect. As a result, many analysts prefer variable costing for internal decisions because it aligns more directly with contribution margin and volume-based decision analysis.
| Cost Category | Variable Costing | Absorption Costing | Income Impact When Production Exceeds Sales |
|---|---|---|---|
| Direct materials | Included in inventory | Included in inventory | No conceptual difference |
| Direct labor | Included in inventory | Included in inventory | No conceptual difference |
| Variable manufacturing overhead | Included in inventory | Included in inventory | No conceptual difference |
| Fixed manufacturing overhead | Expensed in full in current period | Allocated to units and deferred in inventory if unsold | Absorption profit is often higher |
| Variable selling and admin | Period expense | Period expense | Not part of COGS in either method |
Real Data Context: Why Inventory Costing Discipline Matters
Inventory accounting is not an academic exercise. It directly affects margins, pricing analysis, working capital, and lender reporting. The U.S. Census Bureau regularly reports manufacturing shipment and inventory activity, and those data show how large inventory balances can become across the sector. In the Annual Survey of Manufactures, manufacturers report hundreds of billions of dollars of inventories and work in process across industries. Even modest costing errors, when multiplied across that scale, can materially distort internal profitability reporting and performance comparisons.
The producer price environment also matters. U.S. Bureau of Labor Statistics producer price data have shown periods of significant year-over-year volatility in manufacturing inputs, including metals, chemicals, and energy-related categories. When input costs move quickly, the gap between FIFO and weighted average valuation can become more visible, even under the same variable costing framework. That is one reason strong cost-layer tracking and clear policy documentation are so important.
| Statistic | Recent Public Data Point | Why It Matters for Variable Costing | Source Type |
|---|---|---|---|
| U.S. manufacturing inventories | Census manufacturing programs routinely report inventories in the hundreds of billions of dollars across sectors. | Large inventory balances mean small costing mistakes can create meaningful reporting distortion. | U.S. Census Bureau |
| Producer price volatility | BLS PPI series have shown double-digit swings in some manufacturing-related inputs during high-inflation periods. | When current unit costs change quickly, FIFO and weighted average produce different COGS and ending inventory results. | U.S. Bureau of Labor Statistics |
| Small business failure pressure | SBA resources consistently emphasize cash flow and cost control as core survival drivers for operating businesses. | Accurate variable cost reporting supports pricing, margin protection, and working-capital decisions. | U.S. Small Business Administration |
Common Mistakes When Calculating Variable COGS
- Including fixed factory overhead in the unit cost. That turns the calculation into absorption costing.
- Including selling expenses in inventory. Selling costs are period costs, not product costs.
- Ignoring beginning inventory cost layers. If beginning inventory was produced at a different variable cost, you must respect that difference.
- Using units produced instead of units sold for COGS. Ending inventory depends on what remains unsold.
- Allowing sold units to exceed available units. Your inventory model should reject impossible unit flows.
- Mixing contribution margin with gross margin terminology. Under variable costing, internal reports often emphasize contribution margin rather than traditional gross profit format.
Best Practices for Managers and Analysts
- Maintain a documented definition of variable manufacturing overhead.
- Separate product costs from period costs in your chart of accounts.
- Reconcile beginning units, production, sales, and ending units every reporting period.
- Track changes in per-unit direct material, labor, and overhead inputs to explain COGS movement.
- Run both FIFO and weighted average internally if your input costs are volatile.
- Use variable costing alongside contribution margin analysis for pricing, product mix, and special-order decisions.
Authoritative Resources
For deeper guidance on inventory methods, accounting policy discipline, and manufacturing data context, review these sources:
- IRS Publication 538: Accounting Periods and Methods
- U.S. Census Bureau: Annual Survey of Manufactures
- U.S. Bureau of Labor Statistics: Producer Price Index
Final Takeaway
To calculate cost of goods sold under variable costing, focus only on variable manufacturing costs, compute the variable cost of goods manufactured, add beginning finished goods at variable cost, and subtract ending finished goods at variable cost. That is the core mechanics. From there, the quality of your answer depends on how well you classify costs, how carefully you track beginning inventory layers, and whether your chosen flow assumption matches the analytical purpose of the report.
Used correctly, variable costing provides a cleaner view of marginal production economics than absorption costing. It helps management see what each unit truly contributes, avoids burying fixed overhead inside inventory, and supports better short-term decisions on pricing, production, and profitability. Use the calculator above to test your own numbers, compare methods, and quickly visualize the relationship between goods available for sale, ending inventory, and variable COGS.