KPI Library / Financial
4-Wall Margin
Formula: (Plant revenue - plant-controllable costs) ÷ plant revenue
Typical range: Varies widely by industry and product mix; track trend against your own plant budget rather than an external number
4-wall margin measures the profitability of a single plant using only the costs plant leadership can actually control, stripping out corporate overhead, SG&A allocations, and other costs that land on the P&L but were never the plant’s decision to make. The name comes from limiting the calculation to what happens inside the four walls of the facility: material, direct labor, and plant overhead.
What good looks like
There’s no clean external benchmark here, because what counts as “controllable” versus “allocated” varies by company and even by plant within the same company. The number that matters is the trend against your own budget and against the plant’s own history, not a comparison to some published industry figure. A plant holding steady or improving 4-wall margin quarter over quarter, on a stable cost definition, is doing its job regardless of what the absolute percentage is.
The fight to watch for is what belongs inside the four walls in the first place. Finance and operations regularly disagree about which costs are truly controllable at the plant level, and it is not uncommon for corporate to quietly load more allocated cost into a plant’s four-wall bucket during a budget cycle. When that happens, margin drops with zero change in how the plant actually ran, and a plant manager who doesn’t know the cost definition moved will spend a review meeting defending a number that was never really about them.
4-Wall Margin in Power BI (DAX)
With a plant-level P&L fact carrying revenue and cost categories:
Plant Revenue = SUM ( fact_plant_pl[revenue] )
Four Wall Cost =
SUM ( fact_plant_pl[material_cost] )
+ SUM ( fact_plant_pl[direct_labor_cost] )
+ SUM ( fact_plant_pl[plant_overhead_cost] )
Four Wall Margin $ = [Plant Revenue] - [Four Wall Cost]
Four Wall Margin % = DIVIDE ( [Four Wall Margin $], [Plant Revenue] )
Keep corporate_allocation as its own explicit column, tracked but excluded from the
four-wall calculation rather than left out of the model entirely. That way, when
someone asks why margin moved, the allocation shift is visible instead of buried.
Common mistakes
- Letting corporate allocations creep into the controllable bucket. This makes plant managers accountable for costs they never had a decision over, and it quietly erodes trust in the metric.
- Comparing 4-wall margin across plants with different product mixes. A plant running high-margin SKUs will always look better without any change in operational performance, so normalize for mix before ranking plants against each other.
- Not reconciling 4-wall margin back to the audited plant P&L. If finance’s number and the BI model’s number don’t tie out, the two teams end up debating the wrong thing.