Talk to an Expert
Talk to an Expert ✆ +91 945 945 6700
Accounting and Bookkeeping · 9 min read · Jul 20, 2026 · Updated Jul 27, 2026

How to Calculate COGS in a Manufacturing Business (With Example)

CA Puja Pradhan

How to Calculate COGS in a Manufacturing Business (With Example) - Featured Image
In this guide

    To calculate COGS in a manufacturing business you cannot simply take opening stock plus purchases minus closing stock, the way a trader does. Production adds labour and factory overhead to raw materials, so cost of goods sold (COGS) is worked out in two stages: first you build the cost of goods manufactured (COGM), then you adjust that figure for the movement in finished goods. This guide sets out both formulas, a full worked example with Indian figures, and how to read COGS out of a Schedule III profit and loss account. For the commercial side of factory books, our Manufacturing Accounting Services page covers scope and engagement.

    What is COGS in manufacturing accounting?

    COGS is the total cost of the goods that were actually sold during a period, not the cost of everything produced or purchased. For a manufacturer, that cost has three ingredients: the raw materials consumed, the direct labour that converted them, and the factory overhead absorbed into production. Selling, administrative and finance costs sit below the gross profit line and never enter COGS. The distinction matters because gross profit (revenue minus COGS) is the number a factory owner uses to judge whether the shop floor is earning its keep, separate from office and marketing spend.

    Because production runs across period ends, some units are always part-finished. Those sit in work-in-progress (WIP), and finished units waiting to be sold sit in finished goods. Calculating COGS correctly is really about tracking cost as it moves through raw material, WIP and finished goods stores. If you run distinct batches or continuous output, the costing method behind these numbers is covered in our note on process costing versus job costing.

    The COGS formula and how it differs for a manufacturer

    The trader's formula is familiar:

    COGS = opening stock + purchases - closing stock.

    A manufacturer keeps the same skeleton but replaces "purchases" with cost of goods manufactured, and uses the finished goods figure rather than a single stock number:

    COGS = opening finished goods + cost of goods manufactured - closing finished goods.

    So the whole exercise depends on one earlier figure: cost of goods manufactured. Get COGM right and COGS is a two-line adjustment.

    CA Tip: Keep three separate stock ledgers, raw materials, WIP and finished goods, rather than one "inventory" account. Schedule III and AS 2 both expect the split, and you cannot compute COGM without opening and closing WIP.

    Cost of goods manufactured formula and total factory cost

    Cost of goods manufactured is the factory cost of the units completed during the period. Build it in this order:

    1. Raw materials consumed = opening raw materials + purchases - closing raw materials.
    2. Total manufacturing cost = raw materials consumed + direct labour + factory overhead absorbed.
    3. Cost of goods manufactured = total manufacturing cost + opening WIP - closing WIP.

    Total manufacturing cost (sometimes called factory cost or works cost) is the middle line: the three cost buckets for the period before any WIP adjustment. COGM then reflects only the units that actually crossed the finish line.

    Flow diagram showing raw materials, labour and overhead combining into total manufacturing cost, then adjusting for WIP and finished goods to reach cost of goods sold.
    How cost flows into COGS in a factory

    The three cost buckets

    Getting each bucket right is where most errors creep in. Materials should be valued using a consistent flow assumption (see the FIFO section below) and include freight and duty in the landed cost. Direct labour is the wages of workers who physically make the product, not supervisors or storekeepers. Factory overhead is every other production cost: power, factory rent, machinery depreciation, consumables and quality control. The line between production overhead and period cost is drawn in our glossary note on direct versus indirect factory overheads, and the recipe that drives material consumption is your bill of materials.

    Common mistake: Loading the managing director's salary, sales commissions or head-office rent into factory overhead. These are period costs and belong below the gross profit line. Absorbing them into COGM overstates inventory on the balance sheet and understates true gross margin.

    Step-by-step: calculating COGS in a manufacturing business

    1. Value opening and closing raw materials, WIP and finished goods on a consistent basis.
    2. Compute raw materials consumed (opening + purchases - closing).
    3. Add direct labour for the period.
    4. Add factory overhead absorbed to reach total manufacturing cost.
    5. Add opening WIP and deduct closing WIP to reach cost of goods manufactured.
    6. Add opening finished goods and deduct closing finished goods to reach COGS.
    7. Divide COGS by revenue to get the COGS percentage and compare it with prior periods.

    Depreciation of plant is a real overhead in step 4, so it must be computed before you can absorb it; the Schedule II working can be run through our depreciation calculator.

    Worked example: COGS for a discrete manufacturer

    Take a small engineering unit for one financial year. All figures are in rupees and illustrative only. The worksheet builds COGM first, then adjusts for finished goods.

    LineWorkingAmount (INR)
    Opening raw materials12,00,000
    Add: raw material purchases60,00,000
    Less: closing raw materials(10,00,000)
    Raw materials consumed12L + 60L - 10L62,00,000
    Add: direct labour18,00,000
    Add: factory overhead absorbed15,00,000
    Total manufacturing cost62L + 18L + 15L95,00,000
    Add: opening WIP8,00,000
    Less: closing WIP(6,00,000)
    Cost of goods manufactured95L + 8L - 6L97,00,000
    Add: opening finished goods14,00,000
    Less: closing finished goods(11,00,000)
    Cost of goods sold97L + 14L - 11L1,00,00,000

    If revenue for the year was 1,45,00,000, gross profit is 45,00,000 and the COGS ratio is about 69 percent, which sits inside the usual 60 to 75 percent band for Indian discrete manufacturers. A swing of more than three percentage points in a quarter usually points to scrap, rework or an unrecovered input price rise, not to genuine margin change.

    FIFO or weighted average: valuing the inventory in the formula

    Every stock figure in that worksheet depends on the cost flow assumption you choose. AS 2 and Ind AS 2 permit only two: first-in-first-out (FIFO) and weighted average. LIFO is not allowed, and inventory is always carried at the lower of cost and net realisable value, so obsolete or damaged stock is written down. The choice changes reported COGS whenever prices move.

    BasisFIFOWeighted average
    Which costs hit COGSOldest purchase costsBlended average of all purchases
    Effect when prices riseLower COGS, higher profitSmoother, mid-range COGS
    Closing stock valueMost recent (higher) costsBlended cost
    Permitted under AS 2 / Ind AS 2YesYes
    Record-keeping effortBatch layers to trackSimpler, one moving rate

    The deeper treatment, including net realisable value write-downs, is set out in our guide to inventory valuation under AS 2 and Ind AS 2 and the glossary note on FIFO versus weighted average cost. Whichever you pick, apply it consistently; switching methods to flatter profit is a red flag in any audit.

    Reading COGS from your financial statements

    A Schedule III profit and loss statement does not print COGS on a single line. Instead you add three heads: cost of materials consumed, purchases of stock-in-trade, and changes in inventories of finished goods, WIP and stock-in-trade. That sum is your cost of goods sold. Direct manufacturing wages and factory overhead are buried inside employee benefit expense and other expenses, so a manufacturer wanting a true cost-of-sales view has to pull them across manually. The presentation rules sit in Schedule III to the Companies Act, published by the Ministry of Corporate Affairs, and the inventory standard AS 2 is issued by the ICAI.

    From a balance sheet alone you get only opening and closing inventory, never COGS, because the cost of goods manufactured has to come from the P&L. This is one reason well-run factories keep a standalone costing worksheet, exactly like the worked example above, rather than relying on statutory formats.

    Calculating COGS without ending inventory or from gross profit

    Sometimes you need COGS before the year-end physical count is done. Two shortcuts help. If you know the gross profit margin, COGS = revenue - (revenue x gross profit margin); a unit turning over 1,45,00,000 at a 31 percent margin has COGS of about 1,00,00,000, matching our example. If you have no reliable closing stock, apply a standard gross margin from prior periods to estimate COGS, then true it up once the count is available. These are estimates for management reporting, not a substitute for a proper year-end valuation under AS 2.

    CA Tip: Two manufacturing-specific items sit next to COGS and are easy to miss. Goods sent for job work must be tracked and returned within the statutory window under Form ITC-04, and supplier dues to MSMEs carry the Section 43B(h) 45-day rule, disallowing the deduction if you pay late. Both touch the same purchase ledger that feeds materials consumed. The 43B(h) provision is in the Income Tax Act on the Income Tax Department portal.

    Key terms

    The same logic scales to other industries that carry stock or WIP. Service and software firms track unbilled effort rather than materials (see our SaaS Accounting Services and IT company accounting pages), early-stage teams should read Startup Accounting Services, and dedicated stock control sits under inventory accounting and costing services. For a full-books engagement across ledgers, our accounting services hub is the starting point, and you can sanity-check standard applicability with the AS versus Ind AS comparison matrix.

    Key takeaways

    • Manufacturing COGS is a two-step calculation: build cost of goods manufactured, then adjust for the finished goods movement.
    • COGM = raw materials consumed + direct labour + factory overhead, adjusted for opening and closing WIP.
    • COGS = opening finished goods + COGM - closing finished goods.
    • AS 2 and Ind AS 2 allow FIFO or weighted average, never LIFO, at the lower of cost and net realisable value.
    • Schedule III does not show COGS on one line, so keep a standalone costing worksheet for a true cost-of-sales view.

    Decision guide

    Does this cost belong in COGS?
    Does this cost belong in COGS?
    Share this guide: Link copied!

    How to calculate COGS from a balance sheet?

    The balance sheet gives only opening and closing inventory, so purchases or cost of goods manufactured must be taken from the profit and loss account: opening inventory plus purchases minus closing inventory equals cost of goods sold. In a manufacturing business, substitute cost of goods manufactured for purchases and use the finished goods figure rather than total inventory.

    How to calculate COGS from an income statement?

    In a Schedule III profit and loss statement, add cost of materials consumed, purchases of stock-in-trade, and changes in inventories of finished goods, work-in-progress and stock-in-trade. That sum is cost of goods sold. Direct manufacturing wages and factory overhead sit inside employee benefit expense and other expenses, so a manufacturer must pull them across for a true cost of sales.

    What is a good cost of goods manufactured ratio?

    Cost of goods manufactured divided by sales typically runs 60 to 75 percent for Indian discrete manufacturers and above 80 percent in commodity processing. The trend and the split between material, labour and factory overhead matter more than the absolute number. A ratio moving more than 3 percentage points in one quarter usually signals scrap, rework or an unrecovered price change.

    How is COGS calculated under FIFO?

    Under first-in-first-out the earliest units purchased are treated as sold first, so cost of goods sold carries older costs while closing inventory carries the most recent ones. When prices rise, FIFO reports lower COGS and higher profit than weighted average. AS 2 and Ind AS 2 permit FIFO or weighted average but not LIFO, and inventory is carried at the lower of cost and net realisable value.

    How is COGS calculated in Excel?

    Build three columns for opening inventory, purchases or cost of goods manufactured, and closing inventory, then use a formula of the form =B2+C2-D2 for each period. Add a fourth column dividing COGS by revenue to track the percentage month on month. For FIFO layers, keep a helper table of purchase batches with quantity and rate and consume them with SUMPRODUCT against units sold.