# Uber surge pricing: who decides your fare doubles after a concert (System Design Notes)

> How Uber decides surge: the city cut into H3 hexagons, demand vs supply counted per hexagon, the Kafka to Flink to key-value store pipeline, the 5-minute...

Canonical: https://www.internhack.in/notes/surge-pricing
Last updated: 2026-11-07

By InternHack Team · 2026-11-07 · 16 min read · System Design

The concert ends, thousands of people open Uber at the same moment, and a ride that cost ₹200 now shows ₹400. The driver didn't raise it. A formula did. (₹200 to ₹400 is an illustrative example, not a real fare.)

In these notes we break surge pricing down like a system design problem: how Uber divides a city, what it counts, the streaming pipeline that turns those counts into a price, how often it updates, what the driver sees, what Indian law allows, and why walking a short distance or waiting a few minutes can lower your fare. This is Part 8 of our Real Life System Design series. Part 7 was Google Maps live traffic.

Facts come from Uber's engineering blog, Uber's own 2021 paper on its real-time data infrastructure, Uber's 2015 surge case study, a 2015 Northeastern University measurement study, Uber's help and blog pages, and Indian news reports on the rules, all listed at the end. **Uber does not publish the hexagon size it uses for surge, today's update interval, the multiplier formula, or the smoothing method.** Anything we couldn't confirm is marked **unverified**, and anything that follows from the documented mechanism but that Uber hasn't said in those words is marked **inference**.

## The city is cut into hexagons

Uber says surge "is automatically activated by algorithms that detect shifts in rider demand and driver availability", and that it works at "a hyperlocal level in real time". The hyperlocal unit is a hexagon. From Uber's 2018 engineering blog on **H3**, its hexagonal grid: "we calculate surge pricing by measuring supply and demand in hexagons in each city that we serve", and "Data points are bucketed into hexagons".

**Why hexagons and not squares?** Uber's own reasons: "hexagons minimize the quantization error introduced when users move through a city", and "hexagons have only one distance between a hexagon centerpoint and its neighbors". A square has two kinds of neighbours (side and corner), at two different distances. A hexagon has six neighbours, all equally far away. (The popular "hexagons because honeycombs are strong" explanation is not Uber's reason.)

H3 has **16 resolutions** (0 to 15), and each finer resolution has cells "one seventh the area" of the one above. For a sense of scale:

| H3 resolution | Average area | Edge length |
| --- | --- | --- |
| 7 | 5.16 km² | 1.41 km |
| 8 | 0.737 km² | 531 m |
| 9 | 0.105 km² | about 201 m |
| 10 | 0.015 km² | 76 m |

Which resolution Uber uses for surge is **not published (unverified)**. So the safe way to say it is "small hexagons, a few hundred metres across", not "resolution 9".

Each hexagon then gets two counts:

- **Demand:** people opening the app and requesting rides. Uber's own study counted "users opening the Uber app each minute" and ride requests.
- **Supply:** drivers and their status. Uber's paper says surge uses "trip data, rider and driver status in a time window". Exactly which driver states count as supply in the live system is **unverified**.

> **System design lesson:** To price by place, first decide how to divide space. A uniform grid where every neighbour is the same distance away makes counting, comparing and smoothing between areas much simpler.

## Sign up free to unlock the full notes

The rest of these notes needs a free InternHack account:

- The actors in the system
- The pipeline, step by step
- How often does the price change?
- Real cases: the concert and the 26-minute glitch
- Edge cases: things you've seen, and why
- India: what the rules allow
- Myths to avoid
- The reel's question: what's the most you've paid in surge?
- How to answer this in an interview

Sign up free: https://www.internhack.in/register?from=%2Fnotes%2Fsurge-pricing

## Sources

- Uber Engineering, "H3: Uber's Hexagonal Hierarchical Spatial Index" (Isaac Brodsky, 27 Jun 2018): https://www.uber.com/blog/h3/
- H3 docs, "Tables of Cell Statistics Across Resolutions": https://h3geo.org/docs/core-library/restable/
- Fu and Soman (Uber), "Real-time Data Infrastructure at Uber", SIGMOD 2021: https://arxiv.org/abs/2104.00087
- Hall, Kendrick, Nosko, "The Effects of Uber's Surge Pricing: A Case Study" (2015): https://leeds-faculty.colorado.edu/leachj/BCOR1015/Readings%20not%20linked%20to%20Library%20Page/Effects_of_uber's_surge_pricing%20CASE.pdf ; Uber research page: https://www.uber.com/blog/research/the-effects-of-ubers-surge-pricing-a-case-study
- Chen, Mislove, Wilson (Northeastern), "Peeking Beneath the Hood of Uber", ACM IMC 2015: https://mislove.org/publications/Uber-IMC.pdf ; project page: https://personalization.ccs.neu.edu/Projects/Uber/
- Garg and Nazerzadeh, "Driver Surge Pricing": https://ar5iv.arxiv.org/html/1905.07544 ; Management Science 2022: https://econpapers.repec.org/RePEc:inm:ormnsc:v:68:y:2022:i:5:p:3219-3235
- Uber, "Rebalancing the marketplace" (surge pricing): https://www.uber.com/us/en/marketplace/pricing/surge-pricing
- Uber driver page, "How surge pricing works": https://www.uber.com/au/en/drive/driver-app/how-surge-works/
- Uber India blog, "Upfront prices: no math, no surprises" (15 Dec 2016): https://www.uber.com/in/en/blog/upfront-prices-no-math-no-surprises/
- MoRTH, Motor Vehicle Aggregator Guidelines 2025 (PDF did not load for us): https://morth.gov.in/sites/default/files/circulars_document/MV-Aggregators-Guidelines-2025%20-%20English%20and%20Hindi.pdf ; reported by The Week (2 Jul 2025): https://www.theweek.in/news/biz-tech/2025/07/02/ride-hailing-goodbye-to-3x-4x-surge-pricing-and-ride-cancellations-as-morth-announced-new-guidelines-for-uber-ola-rapido-cab-aggregators.html
- 2020 guidelines, 1.5x cap (MediaNama, secondary): https://www.medianama.com/2020/11/223-in-major-move-govt-caps-commissions-surge-pricing-charged-by-ola-uber/
- Karnataka notification (The News Minute, 5 Feb 2024): https://www.thenewsminute.com/karnataka/karnataka-cab-fares-to-go-up-as-govt-revises-rates-disallows-surge-pricing
- Mumbai RTO 1.5x cap (Free Press Journal, 18 Sep 2025): https://www.freepressjournal.in/mumbai/relief-for-commuters-maharashtra-transport-department-caps-surge-pricing-for-ride-aggregators-during-festivals-emergencies
- Uber denial on iPhone pricing (Business Today, 24 Jan 2025): https://www.businesstoday.in/amp/technology/news/story/uber-refutes-claims-of-charging-higher-fares-for-iphone-users-amid-ccpa-probe-461911-2025-01-24
- DG probe (MediaNama, 13 Mar 2025): https://www.medianama.com/2025/03/223-ola-uber-deny-differential-pricing-for-iphone-users-as-govt-investigates/
- Battery and device experiment (India TV, 20 Jan 2025): https://www.indiatvnews.com/trending/news/delhi-man-reveals-uber-s-pricing-algorithm-claims-fare-varies-based-on-phone-type-and-battery-2025-01-20-972250
- Uber and low battery (The Drum, 2016, secondary): https://www.thedrum.com/news/2016/05/23/uber-riders-low-batteries-more-likely-agree-surge-multiples-99
- Outlook Business, "Rain, Rush & Too Few Cabs" (13 Jul 2025): https://www.outlookbusiness.com/in-depth/rain-rush-too-few-cabs-why-ola-uber-rapido-prices-surge-and-who-really-pays
- Bengaluru rain fare post (Business Today, 21 May 2025): https://www.businesstoday.in/latest/trends/story/bengaluru-rains-uber-hikes-cab-prices-due-to-massive-traffic-snarls-netizens-say-humanity-is-lost-477104-2025-05-21
- NYE completion rate (CBS News, secondary, not opened): https://www.cbsnews.com/news/uber-defends-surge-pricing-with-nyc-case-study
- Sydney siege (secondary): https://jrnl.ie/1834872 ; https://www.rte.ie/news/business/2014/1224/668784-uber-sydney-surge
- Hacker News, "Show HN: SurgeProtector": https://news.ycombinator.com/item?id=8586782 ; case study thread: https://news.ycombinator.com/item?id=10235757

Uber does not publish the H3 resolution it uses for surge, today's update interval, the multiplier formula or the smoothing method; these remain unverified. The 2025 and 2020 cap figures come from news reports, not the official documents. No final outcome of the CCPA probe was found as of 6 Nov 2026.

## Related

- [Home](https://www.internhack.in/)
- [Notes](https://www.internhack.in/notes)
