Material Balance Planner

Material Balance Planner

Quick answer

Enter only the rates you can verify in your current build. The planner keeps water, residue, and generic material ledgers separate, rejects incompatible units, and shows every substituted formula.

User-input calculation · no recipe database

Measure first. Enter the same units. Keep the formula visible.

Start with a blank scenario and enter only rates you can verify in your current Sandustry build. Water and steam use separate direct ledgers; residue uses generation, sink, and optional storage values; Generic Chain multiplies each user-entered per-cycle quantity by its cycles per minute.

Keep every row inside one dimension. Mass converts between grams, kilograms, and tonnes; volume converts between litres and cubic metres; count converts between items per second and items per minute.

Results describe the mathematics of the current inputs, not an official game mechanic or a promise of permanent factory stability. Save scenarios locally, export strict JSON, or create a read-only URL fragment only when you choose.

Saved to browser storage

Rename scenario

Share Link

The URL fragment contains every label and rate in this scenario. Anyone with the link can read it.

Overview

The Material Balance Planner is a formula-transparent rate calculator for Sandustry. It diagnoses the arithmetic implied by user-entered rates; it does not supply game recipes, infer hidden loss, read saves, or guarantee a layout.

Planner Specifications

Conservation lawExact linear rate balance across inputs, outputs, and intermediate buffers
Decimal precision6-decimal fixed-point calculation with 0.000001 epsilon tolerance
Cross-dimension ruleIndependent mass, volume, and count accounting without implicit density conversion
Local storageUp to 20 offline scenarios stored in browser localStorage

Calculation Modes

  1. Water & Steam Balance: Calculates external source, recovered condensate, process consumption, and explicit waste as separate ledgers.
  2. Residue Balance: Evaluates generation against burner, process, and export sinks, with optional time to storage full.
  3. Generic Production Chain: Aggregates multi-machine cycle throughput and external endpoints to identify material deficits.

Transparent Formulas

Water: netBalance = externalSource + recovered - processConsumption - waste
Required makeup: max(0, -netBalance)
Residue: netAccumulationRate = generation - burnSink - processSink - exportSink
Storage: timeToStorageFull = remainingCapacity / netAccumulationRate
Generic: netBalance(m) = externalSourceRate(m) + productionRate(m) - consumptionRate(m) - externalSinkRate(m) - targetDemand(m)

Frequently Asked Questions

Why does this planner start completely blank without prefilled recipes?

Sandustry is in active Early Access. All cycle times and input/output ratios are entered directly by you.

How do I choose the correct flow and quantity units?

Select units matching your display. Cross-dimension conversions are prevented.

Are my custom factory scenarios uploaded?

No. Calculations and saved scenarios stay inside your browser.

How does URL fragment sharing work?

The active scenario is encoded after #mbp. The recipient sees a read-only preview before importing.

Why does the planner show a unit conflict?

Mass, volume, and count cannot be converted through an assumed density or phase ratio.

Will an update change my saved scenario?

No saved value is silently replaced.

Sources and verification

  1. Material Balance Formula & Transparency Specification

    Sandustry Guide Editorial · checked 2026-08-20 · repository document docs/material-balance-formulas.md.

Related guides

Water & Steam Balance Guide · Residue Bottleneck Guide · Sandustry Beginner Guide