ESP32 low-power reality: what the sleep current tables actually say

Six Espressif datasheets list sleep currents that differ by more than nine times, and none of those numbers describes the board on your desk.

Most low-power comparisons start from one figure, usually the deep-sleep current of whichever chip the author happened to use. That figure is real, and it is also the least interesting number in the datasheet. Deep sleep is where the current families converge: five microamperes at one end and twenty-five at the other. Light sleep is where they separate, by a factor of 9.4. And both columns describe the SoC alone, with the flash chip, the regulator and every pin held in a state the datasheet names in a footnote.

This guide reads the sleep tables directly, names the revision and table number for each figure, and then adds the parts of the system that the tables leave outside the measurement. Nothing here was measured on a bench. Every number is either copied from a document or is arithmetic performed on numbers copied from a document, and the difference is labelled each time.

The numbers, with the table they come from

All values are typical, not maximum, at the supply and temperature stated in the source table. No value here is rounded to a marketing figure.

Chip Datasheet Table Light-sleep Deep-sleep Power off
ESP32 v5.3 4-2 0.8 mA 10 µA with RTC timer and RTC memory; 5 µA in Hibernation 1 µA
ESP32-S2 v1.9 5-9 750 µA 25 µA with RTC timer and RTC memory; 20 µA with RTC timer only 1 µA
ESP32-S3 v2.2 5-10 240 µA 8 µA with RTC memory and RTC peripherals; 7 µA with RTC memory only 1 µA
ESP32-C3 v2.4 5-9 130 µA 5 µA 1 µA
ESP32-C6 v1.5 5-11 180 µA, or 35 µA with peripherals also powered down 7 µA 1 µA
ESP32-H2 v1.3 5-9 85 µA, or 25 µA with peripherals also powered down 7 µA 1 µA

Read the light-sleep column from top to bottom: 800, 750, 240, 180, 130, 85 microamperes. The lowest figure belongs to ESP32-H2 and the highest to the original ESP32, which is 9.4 times larger. If the product wakes often enough that light sleep dominates the energy budget, the selection decision is worth more than every register you will tune afterwards.

Read the deep-sleep column instead and the picture changes. Five to twenty-five microamperes, and the ordering is not the one people expect: ESP32-C3 is the lowest at 5 µA, the ESP32 reaches 5 µA only through Hibernation and otherwise sits at 10, while the largest figure belongs to ESP32-S2 at 25 µA and the newest designs sit at 7 and 8. Deep sleep rewards whichever part keeps the least circuitry alive, which has little to do with how new the part is.

Light-sleep is where the families separate

The spread in that column is not a marketing artifact. It tracks what each chip keeps running while the CPUs are paused.

For the original ESP32 the datasheet states the arrangement directly: in light sleep the CPU is paused, and the RTC memory, the RTC peripherals and the ULP coprocessor are running. That is a substantial amount of circuitry to keep alive, and 800 µA is the price of it. The sleep tables for ESP32-S2 and ESP32-S3 list separate deep-sleep figures for a ULP-FSM and a ULP-RISC-V coprocessor, so both parts carry one as well.

ESP32-C3 does not. Its datasheet describes the part as an ultra-low-power SoC with a single RISC-V core and lists no ultra-low-power coprocessor in the functional description or the address map, and its light-sleep row is 130 µA with no ULP entries beside it. The C3 datasheet states the measurement condition in the row itself: VDD_SPI and Wi-Fi are powered down, and all GPIOs are in high impedance.

That condition matters more than the number. A pin left driving a load is outside it. A pin held high by an external pull-up is outside it. The figure describes a chip with nothing attached, and the section on pins below shows how quickly an attached circuit changes the total.

Two light-sleep figures for the same chip

ESP32-C6 and ESP32-H2 each publish two light-sleep rows with nearly identical wording and very different numbers. The distinction is one phrase.

Chip Condition in the table Typical
ESP32-C6 CPU and wireless modules powered down, peripheral clocks disabled, all GPIOs high impedance 180 µA
ESP32-C6 CPU, wireless modules and peripherals powered down, all GPIOs high impedance 35 µA
ESP32-H2 CPU and wireless modules powered down, peripheral clocks disabled, all GPIOs high impedance 85 µA
ESP32-H2 CPU, wireless modules and peripherals powered down, all GPIOs high impedance 25 µA

Clock-gated is not the same as powered down. Gating a peripheral stops its clock and leaves its supply and its leakage intact; removing the supply removes both. On the C6 that single difference is 145 µA, a factor of 5.1, inside one chip with no change to the firmware's logic. On the H2 it is 60 µA, a factor of 3.4.

Neither datasheet states this as advice, and neither promises that an arbitrary application can reach the lower row. What the two rows establish is that a light-sleep figure quoted without its condition is underspecified by a factor of five, and that the condition is worth checking before comparing two chips.

What PSRAM adds, and when

The S3 and S2 light-sleep figures carry a footnote that changes them substantially, and it is easy to miss because it sits below the table.

On ESP32-S3, with the SPI pins pulled up, in-package PSRAM adds 140 µA for 8 MB of 8-line PSRAM at 3.3 V, 200 µA for 8 MB of 8-line PSRAM at 1.8 V, and 40 µA for 2 MB of 4-line PSRAM at 3.3 V. On ESP32-S2, the same footnote gives 140 µA for the parts with in-package PSRAM, which the datasheet names as ESP32-S2FN4R2 and ESP32-S2R2.

Put the S3 numbers together. The chip alone is 240 µA in light sleep. Add 8 MB of 8-line PSRAM at 1.8 V and the sleep current is 440 µA, of which the memory is 45 percent. The PSRAM is not asleep in the sense the chip is asleep: it is in its own low-power state, drawing current to retain contents that the application asked it to retain.

This connects to a decision that looks unrelated. The same eight-line PSRAM parts that carry a thermal penalty in continuous operation also carry the largest sleep-current penalty in the family, and both come from the same choice of memory width and voltage. A part selected for capacity at the prototype stage sets a floor on sleep current that no firmware change will remove.

The datasheet figure is the cheapest sub-mode

ESP32-S3 documents something the other datasheets leave implicit: sleep has sub-modes, and the chip picks one for you. The sleep documentation states that modes supporting more features may consume more power, and that the sleep system automatically selects the mode satisfying every feature the application requires while consuming the least power.

The deep-sleep sub-modes and what forces the chip out of the cheapest one:

Sub-mode ULP or touch sensor RTC IO input or RTC memory at high temperature ADC and temperature sensor monitor
DSLP_ULTRA_LOW No No No
DSLP_DEFAULT Yes No No
DSLP_8MD256 and DSLP_ADC_TSENS Yes Yes One of the two

For light sleep the sub-modes are LSLP_DEFAULT, LSLP_ADC_TSENS, LSLP_8MD256, LSLP_LEDC8M and LSLP_XTAL_FPU, all of which support the ULP and touch sensors and RTC IO at high temperature, with the last two adding the ADC and temperature sensor monitor.

The 7 µA figure in the table is the ultra-low sub-mode. An application that polls a sensor from the ULP, or that runs the ADC in monitor mode, or that selects 8MD256 as the RTC slow clock through CONFIG_RTC_CLK_SRC_INT_8MD256, is not in that sub-mode, and 7 µA is not its number. There is an API to influence the choice, esp_sleep_sub_mode_config with the ESP_SLEEP_ULTRA_LOW_MODE argument, documented as the way to enter the low-power mode when high-temperature RTC IO and RTC memory use are not required.

This is the first place where a measured value legitimately exceeds the datasheet without anyone having made a mistake. The datasheet answered a different question.

ESP-IDF does not power down the flash in light-sleep

Everything above concerns the SoC. The flash chip is a separate part with its own standby current, and the ESP-IDF sleep documentation is explicit about what happens to it.

The function esp_light_sleep_start does not power down SPI flash. The documented reason is timing: powering the flash down takes time, and if the system wakes during that window it powers the flash back up before the previous power-down completed, so the flash may not work correctly. The documentation adds a warning that if a filter capacitor is present on the flash supply, everything possible should be done to avoid powering the flash down at all.

The consequence is a permanent floor under light-sleep current. For ESP series chips the documentation gives the standby consumption of SPI flash as typically below 30 µA, and elsewhere as about 10 to 30 µA. That current is present for the whole of every light-sleep period, because the part is never switched off.

On an ESP32-C3 whose chip current is 130 µA, 10 to 30 µA of flash standby is 7 to 19 percent of the total. On an ESP32-C6 at 35 µA in its lowest light-sleep condition, the flash standby figure is the same order of magnitude as the chip itself, so the memory the firmware does not control becomes as large a line in the budget as the processor it does.

The documentation is also clear that this is not a gap someone forgot to fill. It states that ESP-IDF does not provide any mechanism that can power down the SPI flash in all conditions during light sleep. The knob that does exist is CONFIG_ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND, described as the recommended way to reduce flash consumption during light sleep for power-sensitive applications instead of powering the flash down, with CONFIG_ESP_SLEEP_PSRAM_LEAKAGE_WORKAROUND covering the equivalent case for PSRAM.

Deep sleep is different. The function esp_deep_sleep_start forces the flash to power down regardless of user configuration. That is why the deep-sleep columns are comparable across chips and the light-sleep columns are not: in light sleep the flash current is a property of your board, and in deep sleep it has been removed by the framework.

Powering down the flash anyway has three conditions

The documentation does describe how to remove the flash current, and it describes the conditions tightly enough that most products should not attempt it.

The flash is allowed to be powered down only through one of two mechanisms. Setting CONFIG_ESP_SLEEP_POWER_DOWN_FLASH powers it down only when the RTC timer is the sole wake-up source and the sleep time exceeds the power-down period. Calling esp_sleep_pd_config with ESP_PD_DOMAIN_VDDSDIO and ESP_PD_OPTION_OFF powers it down when the RTC timer is not enabled as a wake-up source, or when the sleep time exceeds the power-down period.

Three facts bound the usefulness of both. The time for an ESP series flash to power down completely may exceed 300 ms, and is longer when capacitors sit on the supply rail. If the sleep is shorter than that, the consumption of the power-up and power-down transitions may exceed the consumption of leaving the flash powered. And the outcome depends on board design, IO impedance, supply and environment, which is why the documentation says ESP-IDF cannot guarantee a safe flash power-down in light sleep and that the method suits only cases with controllable risk and thorough verification.

A third option avoids both problems. CONFIG_ESP_SLEEP_SET_FLASH_DPD puts the flash into its own deep power-down mode, which keeps the part powered but reduces its draw, and is documented as the choice when standby power is still too high but the risk of re-powering should be avoided. It requires a flash chip that explicitly supports deep power-down, which is a line to check in the flash datasheet rather than in the Espressif one.

One GPIO can cost more than the chip

The ESP32 datasheet gives the internal pull-up and pull-down resistance as 45 kΩ typical, in the DC characteristics table. At 3.3 V, a pin whose internal pull-up is holding a line that something else is pulling low passes about 73 µA. Six such pins cost more than the entire deep-sleep budget of an ESP32-C3.

This is not hypothetical. The sleep documentation uses ESP32-WROVER as its example: GPIO12 is pulled up externally on the module and has an internal pull-down inside the chip, so in deep sleep current flows through both resistors and raises the current above the minimum achievable value. The remedy given is rtc_gpio_isolate on that pin before esp_deep_sleep_start.

Two more rules from the same documentation change how pins should be counted. Internal pull-ups and pull-downs do not work when the RTC peripherals are shut down, so a design that needs a defined level during deep sleep must either add external resistors or keep the RTC peripherals powered, and keeping them powered has its own cost. And the option ESP_SLEEP_GPIO_ENABLE_INTERNAL_RESISTORS is enabled by default, configuring internal resistors automatically according to the wake-up mode, so a design using external resistors should disable it, because internal and external resistors together may interfere.

The rule that follows is simple to state and easy to skip: a pin is part of the power budget whether or not the firmware treats it as one. Pins driving an LED, holding an enable line, or sitting on a bus with an external pull-up all draw current in a sleep mode the datasheet measured with every pin in high impedance.

Automatic light-sleep is not free

The mechanism that gets an application into light sleep without writing sleep code is the ESP-IDF power management module, and it has costs that do not appear in any current table.

Power management is compiled in with CONFIG_PM_ENABLE, and dynamic frequency scaling and automatic light sleep are then configured at run time through esp_pm_configure. Automatic light sleep is built on FreeRTOS tickless idle: if CONFIG_FREERTOS_USE_TICKLESS_IDLE is not enabled, the call returns ESP_ERR_NOT_SUPPORTED.

The cost is interrupt latency. The documentation gives a minimum of 0.2 µs, reached at 240 MHz with frequency scaling disabled, and a maximum of 40 µs, reached when frequency scaling is enabled and an interrupt arrives while the CPU is at 40 MHz and must move to 80 MHz. An application with a tight timing requirement will discover this as jitter that was not present before power management was enabled.

Three further consequences follow from the same page. Automatic light sleep is implemented using timer wake-up, so the timer wake-up source must not be configured manually. In light sleep the peripherals are clock-gated and interrupts from GPIOs and internal peripherals are not generated, so any driver that depends on an interrupt during that window must hold ESP_PM_NO_LIGHT_SLEEP. And the lock is a counter: the same number of releases is required before the restriction lifts, which is why a driver that leaks one acquisition keeps the chip awake forever.

Modem-sleep is not sleeping

The name invites a mistake. Modem-sleep keeps the CPU running and turns off the radio baseband, which is a way to stay connected cheaply, not a way to stop.

On ESP32 the datasheet gives 30 to 68 mA at 240 MHz on a dual-core part, 27 to 44 mA dual-core and 27 to 34 mA single-core at 160 MHz, and 20 to 31 mA dual-core and 20 to 25 mA single-core at 80 MHz. Against a light-sleep figure of 800 µA, that is a factor of 25 to 85. No duty cycle makes modem-sleep competitive with light sleep for a battery-powered product.

The distinction that matters is which one preserves a connection. The sleep-mode documentation states that Wi-Fi and Bluetooth connections are not maintained in deep sleep or light sleep even if the disable calls are never made, and that an application needing to keep a connection should enable modem-sleep and the automatic light-sleep feature together. That combination works because the radio wakes on its own schedule and the CPU sleeps between those windows; modem-sleep alone leaves the CPU at tens of milliamperes for the entire interval.

An arithmetic example, with its assumptions stated

The following is arithmetic, not a measurement. It answers one question: below what duty cycle does the choice of chip stop mattering, because the sleep current has become the average.

The model is average current equals sleep current plus the difference between active and sleep current multiplied by the fraction of time spent awake. The two inputs are taken from datasheet rows: 130 µA as the ESP32-C3 light-sleep figure, and 100 mA as the ESP32 receive current for 802.11b, 802.11g or 802.11n, used here only as a stand-in for an awake state with the radio on.

Awake fraction Average current, chip only With 20 µA of flash standby
1 percent 1.13 mA 1.15 mA
0.1 percent 0.23 mA 0.25 mA
0.01 percent 0.14 mA 0.16 mA
0.001 percent 0.131 mA 0.151 mA

Two readings are worth taking from that table. At one percent awake the sleep current contributes about a tenth of the total, so a firmware optimisation that halves sleep current moves the average by five percent. At one hundredth of a percent the sleep current is the average, and halving it halves the product's consumption. Which regime a product is in decides whether the effort belongs in the application or in the part number.

The flash column shows the same effect at the other end. Its 20 µA is 15 percent of the total at the lowest duty cycle and 1.7 percent at the highest. The part that was invisible during design becomes the largest single line in the budget exactly when the budget is tightest.

What to measure, and what to ask

The datasheets settle the comparison and leave three things open, all of which are properties of the assembled board.

The first is flash standby current, which depends on the flash part fitted and is not in the Espressif datasheet. Read it from the flash vendor's datasheet, then confirm it, because a module's flash is chosen by the module vendor and can change between production runs.

The second is the pin state inventory. Every pin that is driven, pulled or connected to something with its own supply should be listed with its state during sleep, and each one should be checked against the 45 kΩ internal resistance and the high-impedance condition the datasheet assumed.

The third is the regulator's own quiescent current, which no Espressif document covers because it is not an Espressif part. A low-dropout regulator with 50 µA of quiescent current sets a floor three times higher than an ESP32-C3 in deep sleep, and the datasheet cannot warn about a component it does not know exists.

Measure the assembled board in its enclosure, at the temperature it will run at, with the firmware image that will ship. The tables in this guide tell you which number to expect and, more usefully, which of the differences between your number and theirs belongs to the chip and which belongs to everything else.