Skip to content

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

Hash

Beginner Mining Basics

Also known as: Hash value, Digest

Definition

Hash is the fixed-length output of a cryptographic hash function — in Bitcoin, a 256-bit number produced by running data through SHA-256 twice. Mining is the act of searching for a block header whose hash falls below a target, and that single computed value is what miners are racing to produce billions of times per second.

Also known as: hash value, digest, hash output.

What a hash actually is

A hash function takes an input of any size and returns a number of fixed length that behaves like a fingerprint: the same input always yields the same hash, but changing even one bit of the input scrambles the entire output unpredictably. The function only runs one way — you cannot work backward from a hash to recover the data that produced it. Bitcoin uses double SHA-256 (the SHA-256 algorithm applied to its own result), which is why the underlying work is called proof-of-work: there is no shortcut, only guessing.

Because the output is effectively random and uniformly distributed, no one can predict which input will produce a small hash. That unpredictability is the entire foundation of Bitcoin’s security — it is what makes the lottery fair and what makes rewriting history prohibitively expensive.

How mining turns hashes into blocks

When a miner assembles a candidate block, it builds an 80-byte block header from the version, the previous block’s hash, the merkle root, a timestamp, the compact difficulty bits, and a 32-bit nonce. The chip then double-SHA-256s that header. If the resulting hash is numerically below the current target, the candidate is a valid block. If not, the miner changes the nonce and tries again.

The vast majority of attempts fail, so a miner simply increments the nonce across its full range, then varies other header fields (a technique called version rolling lets a chip test several header variants in parallel by pre-computing a separate midstate for each version value, multiplying the search space). Each finished double-hash is one attempt, and the rate of those attempts is your hashrate. A hash that beats the easier pool target — but not the network target — is submitted as a share, which is how a mining pool measures your contribution.

Why a home miner cares

Every spec you read about an ASIC — terahashes per second, joules per terahash, total watts — is ultimately describing how many hashes the machine computes and how much electricity each one costs. That is why efficiency (J/TH) matters more than raw output: a hash that costs less energy is a hash that earns more margin. Tuning a rig through undervolting or overclocking is really an exercise in changing how many hashes per joule the silicon delivers, and an open tuning stack lets you find that curve for your own power situation.

If you run a Bitaxe or any other open-source firmware device, you can watch this process directly: the unit reports accepted shares, the difficulty of the best hash it has found, and its rolling hashrate. A tiny solo unit and a warehouse-scale fleet are doing the exact same thing — computing double-SHA-256 hashes and hoping one lands below target. The fleet just buys far more tickets in the same lottery. For plebs running gear at home, understanding the hash demystifies the whole stack: it is the unit of work, the unit of security, and the unit you are paid for. Explore the hardware that does it on the Bitaxe hub, and remember that decentralization grows one independently-computed hash at a time.

Related terms: Double SHA-256, SHA-256, Proof-of-Work, Hashrate, Nonce, Target

In Simple Terms

The output of a cryptographic function. Miners search for block hashes below the difficulty target.

Hash is the fixed-length output of a cryptographic hash function — in Bitcoin, a 256-bit number produced by running data through SHA-256 twice. Mining is the act of searching for a block header whose hash falls below a target, and that single computed value is what miners are racing to produce billions of times per second.

Also known as: hash value, digest, hash output.

What a hash actually is

A hash function takes an input of any size and returns a number of fixed length that behaves like a fingerprint: the same input always yields the same hash, but changing even one bit of the input scrambles the entire output unpredictably. The function only runs one way — you cannot work backward from a hash to recover the data that produced it. Bitcoin uses double SHA-256 (the SHA-256 algorithm applied to its own result), which is why the underlying work is called proof-of-work: there is no shortcut, only guessing.

Because the output is effectively random and uniformly distributed, no one can predict which input will produce a small hash. That unpredictability is the entire foundation of Bitcoin's security — it is what makes the lottery fair and what makes rewriting history prohibitively expensive.

How mining turns hashes into blocks

When a miner assembles a candidate block, it builds an 80-byte block header from the version, the previous block's hash, the merkle root, a timestamp, the compact difficulty bits, and a 32-bit nonce. The chip then double-SHA-256s that header. If the resulting hash is numerically below the current target, the candidate is a valid block. If not, the miner changes the nonce and tries again.

The vast majority of attempts fail, so a miner simply increments the nonce across its full range, then varies other header fields (a technique called version rolling lets a chip test several header variants in parallel by pre-computing a separate midstate for each version value, multiplying the search space). Each finished double-hash is one attempt, and the rate of those attempts is your hashrate. A hash that beats the easier pool target — but not the network target — is submitted as a share, which is how a mining pool measures your contribution.

Why a home miner cares

Every spec you read about an ASIC — terahashes per second, joules per terahash, total watts — is ultimately describing how many hashes the machine computes and how much electricity each one costs. That is why efficiency (J/TH) matters more than raw output: a hash that costs less energy is a hash that earns more margin. Tuning a rig through undervolting or overclocking is really an exercise in changing how many hashes per joule the silicon delivers, and an open tuning stack lets you find that curve for your own power situation.

If you run a Bitaxe or any other open-source firmware device, you can watch this process directly: the unit reports accepted shares, the difficulty of the best hash it has found, and its rolling hashrate. A tiny solo unit and a warehouse-scale fleet are doing the exact same thing — computing double-SHA-256 hashes and hoping one lands below target. The fleet just buys far more tickets in the same lottery. For plebs running gear at home, understanding the hash demystifies the whole stack: it is the unit of work, the unit of security, and the unit you are paid for. Explore the hardware that does it on the Bitaxe hub, and remember that decentralization grows one independently-computed hash at a time.

Related terms: Double SHA-256, SHA-256, Proof-of-Work, Hashrate, Nonce, Target

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