Skip to content

Bitcoin accepted at checkout  |  Ships from Laval, QC, Canada  |  Expert support since 2016

Epoch

Intermediate Network & Protocol

Also known as: Difficulty epoch, Retarget period

Definition

Epoch is a fixed window of consecutive blocks (2,016 of them) between two consecutive recalculations of Bitcoin’s mining difficulty. The word also appears in mining at a much smaller scale, as “Unix epoch” time, the running second-count that timestamps every block your hardware works on.

Also known as: difficulty epoch, retarget period, adjustment window.

The difficulty epoch: 2,016 blocks at a time

Bitcoin aims to produce one block roughly every ten minutes. Because the combined network hashrate is constantly rising and falling as miners switch machines on and off, the protocol periodically retunes how hard a block is to find. It does this in batches: every 2,016 blocks, the network compares how long that batch actually took against the ideal of two weeks, then nudges the difficulty up or down so the next 2,016 blocks land back on schedule. That 2,016-block stretch is one epoch, and the recalculation event that ends it is the difficulty adjustment.

The change is bounded; difficulty cannot jump by more than a factor of four in either direction across a single epoch. This keeps the block time stable without letting a sudden swing in hashrate destabilise the chain. Each epoch is independent: within the window the target your machine must beat is frozen, and it only moves at the boundary.

Epoch as Unix time: the ntime field

The other place a miner meets the word “epoch” is in timestamps. Bitcoin records block times as Unix epoch seconds, the number of seconds elapsed since 1 January 1970. In the Stratum work your pool hands down, this lives in the ntime field of the block header as a four-byte value. Your ASIC is even allowed to roll ntime forward slightly while searching, expanding the space of valid nonce combinations without waiting for fresh work. So “epoch” can mean a two-week difficulty window or a single second on the clock, depending on the context, and both matter to a working rig.

Why an epoch matters to your ASIC and your power bill

For anyone running real hardware, whether a basement S19 or a low-power Bitaxe, the epoch is the heartbeat that governs profitability. When difficulty rises at the end of an epoch, every terahash you produce earns slightly fewer sats; when it falls, your same machine suddenly does more. That is why operators watch the upcoming adjustment as closely as they watch hash price and electricity cost. A back-to-back run of upward adjustments can quietly push a marginal setup past its break-even point.

Tuning lives inside this rhythm. Operators who run a custom firmware or an open tuning stack often re-check their efficiency targets around each adjustment, because the optimal point between raw hashrate and efficiency (J/TH) shifts as the network’s difficulty climbs. The autotuner values that decide voltage and frequency are calculated at runtime per hashboard domain rather than fixed in advance, so a machine can respond to the new economics of each epoch instead of being locked to a single static profile. If you tune your own fleet, the open-source community around the Bitaxe hub is a good place to compare notes, and our firmware comparison lays out what each stack exposes for this kind of per-epoch adjustment.

Epoch boundaries and the chain itself

Epoch boundaries are also where the network’s accounting gets re-anchored. Each block height belongs to exactly one epoch, and the adjustment is computed deterministically from the timestamps stored in the headers, so every honest node arrives at the same new difficulty independently. This is one more layer of decentralisation: no committee sets the difficulty, the epoch does, mechanically, from the work the whole world contributed. It is the same spirit that keeps proof-of-work permissionless, whether you mine at industrial scale in a Hashcenter or run a single board on a desk.

Related terms:
Difficulty Adjustment,
Difficulty,
Target,
Block Height,
Timestamp,
Network Hashrate

In Simple Terms

A 2,016-block period between difficulty adjustments. Each epoch lasts roughly two weeks.

Epoch is a fixed window of consecutive blocks (2,016 of them) between two consecutive recalculations of Bitcoin's mining difficulty. The word also appears in mining at a much smaller scale, as "Unix epoch" time, the running second-count that timestamps every block your hardware works on.

Also known as: difficulty epoch, retarget period, adjustment window.

The difficulty epoch: 2,016 blocks at a time

Bitcoin aims to produce one block roughly every ten minutes. Because the combined network hashrate is constantly rising and falling as miners switch machines on and off, the protocol periodically retunes how hard a block is to find. It does this in batches: every 2,016 blocks, the network compares how long that batch actually took against the ideal of two weeks, then nudges the difficulty up or down so the next 2,016 blocks land back on schedule. That 2,016-block stretch is one epoch, and the recalculation event that ends it is the difficulty adjustment.

The change is bounded; difficulty cannot jump by more than a factor of four in either direction across a single epoch. This keeps the block time stable without letting a sudden swing in hashrate destabilise the chain. Each epoch is independent: within the window the target your machine must beat is frozen, and it only moves at the boundary.

Epoch as Unix time: the ntime field

The other place a miner meets the word "epoch" is in timestamps. Bitcoin records block times as Unix epoch seconds, the number of seconds elapsed since 1 January 1970. In the Stratum work your pool hands down, this lives in the ntime field of the block header as a four-byte value. Your ASIC is even allowed to roll ntime forward slightly while searching, expanding the space of valid nonce combinations without waiting for fresh work. So "epoch" can mean a two-week difficulty window or a single second on the clock, depending on the context, and both matter to a working rig.

Why an epoch matters to your ASIC and your power bill

For anyone running real hardware, whether a basement S19 or a low-power Bitaxe, the epoch is the heartbeat that governs profitability. When difficulty rises at the end of an epoch, every terahash you produce earns slightly fewer sats; when it falls, your same machine suddenly does more. That is why operators watch the upcoming adjustment as closely as they watch hash price and electricity cost. A back-to-back run of upward adjustments can quietly push a marginal setup past its break-even point.

Tuning lives inside this rhythm. Operators who run a custom firmware or an open tuning stack often re-check their efficiency targets around each adjustment, because the optimal point between raw hashrate and efficiency (J/TH) shifts as the network's difficulty climbs. The autotuner values that decide voltage and frequency are calculated at runtime per hashboard domain rather than fixed in advance, so a machine can respond to the new economics of each epoch instead of being locked to a single static profile. If you tune your own fleet, the open-source community around the Bitaxe hub is a good place to compare notes, and our firmware comparison lays out what each stack exposes for this kind of per-epoch adjustment.

Epoch boundaries and the chain itself

Epoch boundaries are also where the network's accounting gets re-anchored. Each block height belongs to exactly one epoch, and the adjustment is computed deterministically from the timestamps stored in the headers, so every honest node arrives at the same new difficulty independently. This is one more layer of decentralisation: no committee sets the difficulty, the epoch does, mechanically, from the work the whole world contributed. It is the same spirit that keeps proof-of-work permissionless, whether you mine at industrial scale in a Hashcenter or run a single board on a desk.

Related terms: Difficulty Adjustment, Difficulty, Target, Block Height, Timestamp, Network Hashrate

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Mining Glossary

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Compare Miners