CCalclabhub

Travel

Fare before the tip

Add the fixed base fare to the product of the per-mile rate and the miles travelled. For the worked ride this is 3.5 + 2.25 x 6 = 17.0.

Last updated

The Formula

F = B + R x m

Add the fixed base fare to the product of the per-mile rate and the miles travelled. For the worked ride this is 3.5 + 2.25 x 6 = 17.0.

SymbolMeaning
BBase fare
RRate per mile
mMiles travelled

What Each Symbol Means

Bcurrency

Base fare

The fixed starting charge, 3.5 in the worked case, paid once per journey.

Rcurrency/mile

Rate per mile

The meter charge for each mile, here 2.25.

mmiles

Miles travelled

The distance of the ride, six miles in the worked example.

See It Worked With Real Numbers

A formula on its own does not tell you which number goes where. The how to calculate a taxi fare 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 Taxi Fare, filed under Everyday Life. Every number the guide produces comes from substituting into this one line.

Common Questions

What is the formula for Fare before the tip?

The formula for Fare before the tip is F = B + R x m. Add the fixed base fare to the product of the per-mile rate and the miles travelled. For the worked ride this is 3.5 + 2.25 x 6 = 17.0.

What units should I use with Fare before the tip?

Substitute B in money (any currency, as long as every money input uses the same one), R in currency/mile, m in miles. 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 Fare before the tip?

Dividing the tip percentage by 100 a second time. The tipPercent field has the unit percent, so the engine already converts 15 to 0.15. Adding another division gives 0.0015 and a tip of just 0.0255 instead of 2.55, which makes the total almost correct-looking but plainly wrong.