Member-only story
Uber cost algorithm
3 min readJan 13, 2021

Surfing a few articles attached below, Uber calculates the costs for its trip based on multiple factors:
- Base rate: The base rate is determined by the time and distance of a trip.
- Booking fee: In your city, a flat fee might be added to each trip. It helps support operational, regulatory, and safety costs.
- Busy times and areas: When there are more riders than available drivers, prices may temporarily increase until the marketplace is rebalanced.
- Your fare may increase if you travel to a different destination or make extra stops along the route, or the trip takes much longer than expected.
- If an upfront fare is not honored, you will either be charged the minimum fare or a fare based on the measured time and distance for your trip, including any base fare, booking fee, surcharges, tolls, and other relevant factors such as a dynamic pricing charge.
Thanks to Ride.guru we have an example:
Your Uber fare is first calculated the following criterias:
Base (or initial) fare — A flat fee charged at the beginning of every ride
Cost per minute — How much you are charged for each minute you are inside the ride
Cost per mile — How much you are charged for each mile of the ride