Skip links
Table of Contents
    How a batch cost is built in ERPNext

    Batch Costing and Yield Variance Tracking for Process Manufacturers on ERPNext

    In a chemical or paint plant, the formula is a target and the reactor decides the result. That gap is exactly what batch costing software for process manufacturing exists to measure.

    Batch costing software for process manufacturing calculates what each production batch actually cost: the raw materials really consumed, plus labour, utilities and overheads, minus the value of scrap or by-products, divided by the actual output. It then compares that figure against the standard formula to show yield variance batch by batch.

    This guide covers what such a system has to capture, how ERPNext handles each piece, where it needs extra work, and what changes for plants in Gujarat’s chemical belt.

    Why batch costing is harder in process manufacturing

    In discrete manufacturing, a bill of materials is exact: a chair needs four legs. In process manufacturing, a formula is an expectation. Raw material purity, moisture, reaction time, temperature control and operator judgement all move the output from one batch to the next.

    So two batches of the same product can land at very different costs per kg. If costing happens once a month by dividing total spend by total output, the average hides which batches lost money and why. By the time anyone notices, the raw material has been consumed and the product sold.

    What batch costing software for process manufacturing has to capture

    Whatever system you evaluate, it should record these at batch level, not as monthly totals:

    Actual consumption of each raw material, not just the formula quantity

    Planned vs actual output, with process loss recorded separately

    Scrap and by-products valued and credited back against the batch

    Conversion costs: labour, power, steam, machine time

    Batch or lot numbers, so the cost follows the product into stock and onto the invoice

    If a system can’t do the first two, it can’t show yield variance at all. Everything else refines the number.

    How ERPNext handles batch costing

    ERPNext runs each production batch as a Work Order against a Bill of Materials (BOM). When the Manufacture stock entry is posted, ERPNext values the finished goods from what went into it.

    How the finished batch value is built

    Cost elementWhere it comes from in ERPNext
    Raw materialsValuation rate of the materials actually issued to the work order
    Operating costWorkstation hour rates applied to operations and job cards
    Other conversion costs"Additional Costs" rows on the Manufacture entry (e.g. power, steam, fuel)
    Scrap / by-productsScrap items defined on the BOM, valued and deducted from the finished cost
    Process lossExpected loss % set on the BOM; actual loss quantity recorded on the entry
    Because items can be batch-tracked, the finished lot carries its cost into inventory. Depending on your ERPNext version and valuation settings, batch-wise valuation lets you read margin per batch at the point of sale instead of on a blended average. That matters when the same product is sold to a price-sensitive distributor and to a customer paying for a tighter specification.

    The backflush decision

    ERPNext’s Manufacturing Settings let you backflush raw materials either from the BOM or from what was actually transferred for manufacture. Backflushing from the BOM is faster for the floor but it records the formula quantity as consumed, which erases the variance you are trying to see. For critical or expensive inputs, plants usually record actual quantities and accept the extra entry.

    Yield variance tracking for chemical and process batches

    Yield variance is the gap between the output the formula should give and what the batch actually produced. It is favourable when you get more than expected and unfavourable when you get less.

    ERPNext’s BOM Variance Report compares BOM quantities against actual consumption per work order, and process loss data on the manufacture entry shows the output side. Read together, they tell you whether a bad batch was an input problem (too much consumed) or an output problem (normal inputs, low yield).

    An illustrative example: a formula expects 1,000 kg of output with 2% process loss. The batch consumes normal inputs but yields 940 kg. Consumption is on target, so the problem sits in the reaction or recovery step, not in raw material handling. A different batch that yields 980 kg but consumed noticeably more of one intermediate points you at dosing or material quality instead.

    A practical routine that works in most plants:

    Set a realistic expected loss on each BOM, based on your own history rather than the theoretical figure

    Record actual consumption for the inputs that drive most of the cost

    Define a tolerance band per product

    Review batches outside that band weekly, while the shift and raw material lot are still traceable

    Getting this right is mostly configuration and discipline, not code. If your plant needs this batch-level view built around your own formulas and tolerances, that is what a tailored ERPNext implementation is for.

    The Gujarat chemical-belt angle: Ankleshwar, Vapi and the GIDC estates

    Ankleshwar, Vapi and the other GIDC estates in Gujarat are home to a dense mix of dyes, pigments, intermediates, agrochemical and specialty chemical units. Working from Ahmedabad, we see the same operating patterns come up, and each one affects batch costing.

    Job work between units

    Many units send material out for a single step (a reaction, drying, milling) to a neighbouring plant. If the job work charge and the material movement sit outside the ERP, the batch cost is understated. ERPNext's subcontracting flow keeps both the material sent out and the job work charge inside the batch, and keeps the stock at the job worker visible.

    Solvent recovery

    Recovered solvent has real value. When it is ignored, every batch looks more expensive than it is and the recovery plant looks like a pure cost centre. Setting recovered solvent up as a valued scrap or by-product item credits it back to the batch that produced it.

    Variable-assay raw materials

    Intermediates bought from different suppliers often vary in purity, so the effective quantity needed per batch changes. ERPNext does not adjust consumption for assay natively. This usually needs a small custom calculation on the work order.

    Month-end Excel costing

    A common pattern is production in one register, purchases in the accounting package, and costing reconciled in Excel at month-end. Moving to batch costing in an ERP is as much a process change as a software change, and it goes smoother when the floor team is part of the design.

    Where ERPNext needs configuration or custom work

    ERPNext is a solid batch costing ERP for most standard cases. Plainly, these areas need more than default setup:

    True co-products

    When one batch produces two saleable products, splitting cost between them by a rule you choose (weight, market value) needs configuration or custom logic.

    Potency or assay-based consumption

    Not native, as covered above.

    Metered utility absorption

    Charging power or steam to batches by actual meter readings needs a defined method and usually some automation.

    Standard vs actual reporting across periods

    The data is there, but a variance dashboard in the shape your management reads usually needs a custom report.

    None of these are blockers, but they should be in scope from day one, not discovered after go-live.

    Frequently Asked Questions

    It is the difference between the output a formula should produce and the output a batch actually produced, usually valued at standard cost. Less output than expected is unfavourable; more is favourable.
    Yes. Each Manufacture entry values the finished batch from the materials actually issued, operating costs, additional costs and scrap credits. Batch-level margin reporting depends on your version and valuation settings being configured for it.
    Batch costing assigns cost to a specific production lot. Process costing averages cost across a department or period. Most chemical plants need batch costing for decisions and process-level summaries for accounts.
    It can be, if the plant is willing to record actual consumption and output consistently. The software handles small operations well; the risk is a setup that copies the old Excel habits instead of fixing them.
    Weekly works for most plants. Monthly is usually too late to trace a bad batch back to a shift, a raw material lot or a process step.

    Want a second look at your batch costing?

    If you are evaluating batch costing software for process manufacturing, the useful first step is mapping one product: its formula, where losses happen, what gets recovered and what goes out on job work. That map tells you quickly what ERPNext handles as-is and what needs configuration.

    Book a free ERPNext consultation and we will walk through one of your products with you. If you would like to see how other implementations approached similar problems first, our case studies are a good place to start.

    Vishal Parekh
    As Co-Founder of Aavatto, Vishal Parekh leads our work on the operational side of ERPNext – warehouse management, inventory control, and e-commerce fulfillment for manufacturers and traders. He’s the mind behind Univentory, and spends most of his time thinking about how businesses can replace spreadsheet chaos with systems that actually reflect what’s happening on the warehouse floor.
    Vishal-valand
    This can be a new journey !

    Related Posts

    Have a Project in Mind?

    This can be a new journey !

    leaf