Everyday Life · 69 calculators
Taxi Fare Calculator
A taxi fare estimate turns four inputs into a single bill: the base fare, the rate per mile, the number of miles travelled and the tip. Splitting the result into the pre-tip fare, the tip and the effective cost per mile shows exactly where the money goes, and makes it easy to check a meter or compare two quotes.
Last updated
Total fare including tip
$19.55
- Fare before tip
- $17.00
- Tip amount
- $2.55
- Effective cost per mile
- $3.26
Values update as you type. This calculator covers the single scenario its formula assumes — see Common Mistakes for what it leaves out.
The formula this calculator uses
Fare before tip = baseFare + (perMileRate x miles) | Total = Fare before tip x (1 + tipPercent) | Cost per mile = Total / miles
- baseFare
- The fixed charge owed at the start of the journey
- perMileRate
- The meter rate charged for each mile travelled
- miles
- The distance travelled in miles
- tipPercent
- The gratuity as a percentage of the fare before the tip
How to check the result by hand
- 1
Express the tip as a decimal
A 15 per cent gratuity is 0.15 as a multiplier. The calculator handles this conversion for you because tipPercent is a percentage field with a default of 15, so the expression receives 0.15 already. If you are doing the arithmetic by hand, divide 15 by 100 exactly once.
- 2
Work out the distance charge
Multiply the per-mile rate by the distance: 2.25 x 6 = 13.5. This is the part of the meter that grows with the journey, so it is the first figure to recompute if the route changes. Use the actual distance travelled rather than a straight-line estimate.
- 3
Add the base fare for the pre-tip total
Add the fixed charge once: 3.5 + 13.5 = 17.0. This is the fare before the tip, and it is the correct base for any gratuity. Keep it visible as a separate figure so that the tip can be checked independently.
- 4
Apply the tip to get the total
The tip is 17.0 x 0.15 = 2.55, and the total is 17.0 x 1.15 = 19.549999999999997. That long tail is the true stored value of the multiplication and should be copied exactly, not rounded away at this stage. A card reader will present it as 19.55.
- 5
Divide by miles for the effective cost per mile
Take the all-in total and divide by the distance: 19.549999999999997 / 6 = 3.258333333333333. This exceeds the 2.25 meter rate because each mile also carries a share of the base fare and the tip. On a longer ride the same fixed costs are spread further, so this figure falls even though the total rises.
Common Questions
How does the Taxi Fare Calculator work?
Add the base fare to the distance charge to get the fare before the tip, then multiply by one plus the tip rate to get the total. With a 3.5 base fare, 2.25 per mile, six miles and a 15 per cent tip, the fare before the tip is 17.0, the tip is 2.55 and the total is 19.549999999999997. Dividing that total by six miles gives an effective cost of 3.258333333333333 per mile.
What do I need to enter in the Taxi Fare Calculator?
It takes 4 inputs: Base fare, Rate per mile, Miles travelled, Tip (percent). Fields that expect a unit say so next to the label.
Where does Total fare including tip come from?
It comes from 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 is the most common mistake with the Taxi Fare Calculator?
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.
For worked examples, common mistakes and the limits of this formula, read the full How To Calculate A Taxi Fare page.
