Budgets: tracking cost, mass and power with margins
How engineers keep track of quantities that add up across a whole design, such as mass, cost and power, and why every budget needs contingency and margin to survive contact with reality.
Lesson 3 of 6 · 30 min · Self-paced · Free
Why budgets matter
Imagine a small wheeled robot that must weigh no more than 1.1 kg so that its motors can climb a ramp. Nobody designs "the mass" of a robot directly. One person picks the motors, another designs the chassis, someone else adds a camera, and the wiring appears at the end. Each choice seems small, but they all add up. Many projects discover at the very end that the finished machine is too heavy, too expensive or drains its battery too fast, and by then every part is already made.
A budget is the tool that prevents this. In the previous lessons you wrote constraints such as "must weigh no more than 1.1 kg". Some constraints apply to a single part, but others apply to the sum of many parts. Mass, cost, power, volume, and even time are all like this. A budget splits such a total into pieces, tracks each piece as the design develops, and warns you early when the total is heading over the limit.
The parts of a budget
A good budget is a simple list with a few honest columns:
- Item: each part or subsystem that contributes to the total.
- Current best estimate: your best number today. Early on it is a guess; later it comes from a datasheet; finally it comes from weighing or measuring the real part.
- Source or maturity: where the number came from. A weighed part is far more trustworthy than a guess.
- Contingency: an extra allowance added to each item because estimates usually grow as a design becomes more detailed. Less certain numbers get more contingency.
- Limit: the constraint the total must stay below.
The difference between the limit and the predicted total (estimates plus contingency) is the margin. Contingency covers growth you expect in things you already know about. Margin covers the things you have not thought of yet: a forgotten bracket, an extra sensor someone asks for, a heavier part when the first choice goes out of stock.
Different organisations use the words slightly differently, so always say what you mean. In this course, contingency is per item and margin is what is left over at the top.
Worked example: a mass budget
Go deeper: work through it step by stepabout 2 min
The robot below is a made-up example for illustration. The contingency fractions follow a simple policy: 5% for parts that have been weighed, 10% for datasheet values, 20% for early estimates and 30% for rough guesses. Real teams choose their own policy, but this style is common.
# Mass budget: (name, current best estimate in grams, contingency fraction)
items = [
("chassis plate", 180, 0.20), # early estimate
("drive motors x2", 190, 0.10), # datasheet value
("wheels x2", 60, 0.05), # weighed
("battery pack", 210, 0.10), # datasheet value
("controller board", 25, 0.05), # weighed
("camera", 40, 0.10), # datasheet value
("gripper", 120, 0.20), # early estimate
("wiring and fasteners", 60, 0.30), # rough guess
]
limit = 1100 # grams, the hard constraint
estimate = sum(mass for _, mass, _ in items)
contingency = sum(mass * frac for _, mass, frac in items)
predicted = estimate + contingency
margin = limit - predicted
print(f"Current best estimate: {estimate} g")
print(f"Contingency: {contingency:.1f} g")
print(f"Predicted mass: {predicted:.1f} g")
print(f"Margin to limit: {margin:.1f} g ({100 * margin / limit:.1f}% of limit)")Running it prints:
Current best estimate: 885 g
Contingency: 126.2 g
Predicted mass: 1011.2 g
Margin to limit: 88.8 g (8.1% of limit)The robot currently looks comfortably light at 885 g. But once realistic growth is included, it is predicted at about 1011 g, and only about 89 g (8%) of margin remains. That is less than the mass of the gripper. If someone proposes adding a second camera and a bigger battery, the budget tells you immediately that something else must lose mass first.
Notice which items carry the most risk: the chassis and gripper are both large and uncertain. That is where the next round of design effort should go, for example by weighing a prototype chassis to turn a guess into a measurement.
Power budgets: average and peak
A power budget works the same way, with one extra twist: you must track both average power, which sets how long the battery lasts, and peak power, which sets the largest current the battery, wires and electronics must deliver at once.
Here is a made-up power budget for the same robot, running from a 7.4 V pack rated at 2.0 Ah:
- Controller board: 0.5 W, steady
- Camera: 1.5 W, steady
- Sensors: 0.3 W, steady
- Two drive motors: 4.0 W average in total while driving, but up to 18 W in total when starting or climbing
Average total: 0.5 + 1.5 + 0.3 + 4.0 = 6.3 W.
Stored energy is voltage × capacity: 7.4 V × 2.0 Ah = 14.8 Wh (watt-hours). It is wise not to plan on using every last bit, so suppose only 80% is usable: 0.8 × 14.8 = 11.84 Wh.
Run time ≈ usable energy ÷ average power = 11.84 ÷ 6.3 ≈ 1.88 hours.
Now add 20% contingency to the power estimate, because motors usually work harder in real use than on paper: 6.3 × 1.2 = 7.56 W, and 11.84 ÷ 7.56 ≈ 1.57 hours, about 94 minutes. If the requirement is "run for at least 90 minutes", the design passes, but only just. That is a warning, not a celebration.
For the peak, add the largest values that can happen together: 18 + 0.5 + 1.5 + 0.3 = 20.3 W. At 7.4 V that is a current of 20.3 ÷ 7.4 ≈ 2.7 A. Every wire, connector, fuse and the battery itself must be rated for at least this, with margin.
Cost budgets
Cost budgets follow the same pattern: list every part, record where each price came from, and add contingency. Remember the costs that hide: shipping, spare parts for the ones you will break, the fasteners and glue, and replacing a part that turns out to be wrong. A useful habit is to keep a small "unknowns" line in the budget from day one, so there is somewhere for surprises to go.
Top-down and bottom-up
There are two ways to fill a budget, and good teams use both.
- Top-down allocation: start with the limit and give each subsystem a share. "The gripper team has 150 g." This lets people work in parallel, each knowing their target.
- Bottom-up estimation: add up what the parts actually weigh or cost. This tells you whether the allocations are realistic.
When the two disagree, you have found a problem early, while it is still cheap to fix. You might move mass from one subsystem's allocation to another, choose a lighter part, or go back and renegotiate the constraint itself.
Keeping a budget alive
A budget is only useful if it is updated. Each time a guess becomes a datasheet value or a real measurement, replace the number, lower its contingency and note the date. Track the margin over time: if it shrinks week after week, the design is in trouble long before it breaks the limit. And never quietly reduce contingency just to make the total look good; that hides risk rather than removing it.
Project
Paper project: budget a small household design
Choose a simple object you could design, such as a desk organiser, a lunchbox with dividers or a small shelf. Assume a mass limit and a cost limit that sound reasonable to you, and write them as measurable constraints.
- List at least six parts or materials.
- For each, write a current best estimate of mass and cost, its source (guess, product listing, or weighed on a kitchen scale) and a contingency fraction using the policy from this lesson.
- Calculate the predicted totals and the margin for both mass and cost. You may use a calculator, a spreadsheet or the Python example above, changed to suit your items.
- Weigh two of the items on a kitchen scale (or similar household objects as stand-ins) and update the budget. Did the margin grow or shrink?
- Write two sentences saying which item carries the most risk and what you would do about it.
Deliverables
- A budget list with estimates, sources and contingency for mass and cost
- Calculated predicted totals and margins, before and after weighing
- A short note identifying the riskiest item and a plan to reduce that risk
Knowledge check
Check your understanding
Go further
- NASA Systems Engineering Handbook ↗
A free, detailed handbook used in real engineering projects. Its sections on technical planning discuss tracking resources such as mass and power.
Lesson materials · free to download
Sign in to track your progress. Reading is free without an account.