CCalclabhub

Food

Total cost of one order

Add the food subtotal, the flat delivery fee and the tip calculated on the food subtotal. The tip uses the food as its base, never the running total including delivery.

Last updated

The Formula

C = F + d + (F × r)

Add the food subtotal, the flat delivery fee and the tip calculated on the food subtotal. The tip uses the food as its base, never the running total including delivery.

SymbolMeaning
FFood subtotal
dDelivery fee
rTip rate as a decimal

What Each Symbol Means

Fcurrency

Food subtotal

Meals multiplied by the price per meal, before any tip or fee.

dcurrency

Delivery fee

A flat charge added once per order.

rdecimal

Tip rate as a decimal

Enter 10 in the calculator for a 10 percent tip; the runtime uses 0.10.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate a takeaway cost page applies this equation to a concrete case, shows every intermediate step, and names the mistakes that produce a wrong answer even when the algebra is right.

Where This Formula Appears

This equation is the working core of How To Calculate A Takeaway Cost, filed under Everyday Life. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Total cost of one order?

The formula for Total cost of one order is C = F + d + (F × r). Add the food subtotal, the flat delivery fee and the tip calculated on the food subtotal. The tip uses the food as its base, never the running total including delivery.

What does each symbol in Total cost of one order stand for?

F is food subtotal; d is delivery fee; r is tip rate as a decimal.

What units should I use with Total cost of one order?

Substitute F in money (any currency, as long as every money input uses the same one), d in money (any currency, as long as every money input uses the same one), r in decimal. Convert every input to those units before you start, because the equation only returns the right answer when the units on both sides agree.

What is a common mistake when using Total cost of one order?

Tipping on the wrong base. The tip is calculated on the food subtotal, not on the food plus the delivery fee. Adding the fee to the base inflates the gratuity slightly on every order, and the error grows with the tip rate.