---
eip: 8053
label: EIP-8053
title: Milli-gas for High-precision Gas Metering
status: Draft
type: Standards Track
category: Core
created: 2025-10-17
official: https://eips.ethereum.org/EIPS/eip-8053
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8053.md
canonical: https://eips.huatuo.xyz/eip-8053/
lang: en
tldr: "Switches the EVM's internal gas accounting to milli-gas (1/1000 gas) so cheap opcodes can have fractional costs, while fees and gas limits stay in ordinary gas units."
tags: [gas, evm, core, repricing, scaling]
---

# EIP-8053: Milli-gas for High-precision Gas Metering

> Adds `milli-gas` as the EVM’s internal gas accounting unit, reducing rounding errors without impacting UX

**TL;DR:** Switches the EVM's internal gas accounting to milli-gas (1/1000 gas) so cheap opcodes can have fractional costs, while fees and gas limits stay in ordinary gas units.

## What problem does it solve?

Simple compute opcodes (`ADD`, `MUL`, `JUMPDEST`...) have become very cheap to execute thanks to client and hardware improvements, while state access has become relatively more expensive as the state grows. Repricing proposals such as [EIP-7904](/eip-7904/) (cheaper compute) and [EIP-8037](/eip-8037/) / [EIP-8038](/eip-8038/) (costlier state) try to fix the balance, but hit a wall: gas is an integer, and many opcodes are already at 1 or 2 gas.

That leaves two bad options:

- Make compute cheaper but round up to 1 gas. The spec's analysis estimates large average rounding errors at realistic throughput targets, which wastes block capacity.
- Re-anchor so the cheapest opcode costs 1 gas, which means multiplying almost every cost and the gas limits by around 100x, a confusing change for users.

EIP-8053 avoids both by allowing **fractional gas inside the EVM** only.

## How it works

- The EVM's `gas_left` counter is replaced with `milli_gas_left`. 1 gas = 1000 milli-gas.
- Existing opcode gas parameters that are not otherwise repriced are multiplied by 1000, so behaviour is unchanged until a later repricing gives opcodes fractional costs (for example a hypothetical `JUMPDEST` at 90 milli-gas = 0.09 gas).
- At the **end of each transaction**, milli-gas used is rounded **up** to whole gas: `gas_used = ceil(milli_gas_used / 1000)`. Rounding happens once per transaction, not per opcode.
- Transaction fees, transaction gas limits, block gas limits, refunds, calldata and blob gas are all still in normal gas. Users and wallets see no change.
- `GAS` now returns the remaining gas in **milli-gas**.
- `*CALL` opcodes still take a gas amount in gas, which is multiplied by 1000 when the sub-call starts.

The spec's sample of 1000 mainnet blocks found that per-transaction rounding cut the average rounding error from about 4% to about 0.05% compared with per-opcode rounding, under its assumed repricing.

## Sample code

The core accounting change, as execution-spec-style pseudocode:

```python
MILLI = 1000

# opcode costs are now expressed in milli-gas
GAS_VERY_LOW = 3 * MILLI          # unchanged in gas terms

def charge_gas(evm, milli_amount):
    if evm.milli_gas_left < milli_amount:
        raise OutOfGasError
    evm.milli_gas_left -= milli_amount

def op_call(evm):
    gas = Uint(pop(evm.stack)) * MILLI   # callers still pass gas
    ...

def finalize_tx(evm, tx_output):
    tx_output.gas_left = ceil(evm.milli_gas_left / MILLI)
    gas_used = ceil(evm.milli_gas_used / MILLI)   # used for fees and limits
```

## Things to know

- Status is **Draft**; the Security Considerations section is not yet written.
- It is a backwards-incompatible change requiring a hard fork. Contracts that compare the `GAS` opcode result against constants, or that hard-code gas amounts, may behave differently because `GAS` now reports values 1000x larger. The spec flags this as needing more analysis.
- On its own the proposal changes no prices; it is an enabler for fine-grained repricings like EIP-7904.
- It is inspired by the earlier "particle gas" idea in [EIP-2045](/eip-2045/) (Stagnant).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8053
