What is a nonce in mining?
A nonce is a small value that mining software changes while trying to find a valid block—a new batch of transactions to add to Monero’s shared record. Think of it as a changeable input: each new nonce gives the software another chance to produce a result that meets the network’s mining target.
Why a miner keeps changing it
Mining uses a hash function, a calculation that turns input data into a fixed-length result called a hash. The same input produces the same hash. But changing even a tiny part of the input produces a very different, unpredictable result.
That is where the nonce comes in. Instead of waiting for new transactions to arrive, your mining software can change the nonce and try again.
For each attempt, your software roughly does this:
- Prepares the block data it is working on.
- Inserts a nonce value.
- Runs the mining calculation.
- Checks whether the resulting hash meets the target.
- Changes the nonce and repeats if it does not.
You do not choose these values yourself. Your mining software handles them automatically.
What makes a nonce successful?
A nonce is not “correct” on its own. It only works when combined with the particular block data and the mining calculation.
For a block to qualify, its hash must be below a numerical limit called the target. A lower target means fewer possible results qualify, so finding one takes more attempts on average.
This is part of proof of work: evidence that a miner performed the trial-and-error calculations needed to find a qualifying result. Finding that result is costly, but other computers can check it much more easily than repeating the search.
A bigger nonce is not better than a smaller one. There is no “warmer” or “colder” signal as your software searches. Each different input is another chance, not a step toward a predictable answer.
How the nonce fits into Monero mining
Monero uses RandomX, its mining algorithm—the set of rules for doing these calculations. RandomX is designed to favor CPUs, the general-purpose processors in computers.
Monero’s block header, which contains identifying information about a block, includes a 32-bit nonce field. That gives it about 4.29 billion possible values.
That does not mean mining stops after those values have been tried. Mining software can also vary other allowed block data, creating fresh inputs to search. Multiple workers can be assigned different work so they avoid wasting effort on identical attempts.
Monero aims for a new block about every two minutes across the whole network. It adjusts mining difficulty every block. Finding a working nonce might happen quickly or take much longer; the timing is not guaranteed.
What you see when mining
You usually see a hash rate, meaning mining attempts per second, rather than individual nonces.
If you mine through a pool, a service that combines miners’ work, your software may submit shares. These are results that meet the pool’s easier target and demonstrate your contribution. Most shares do not meet Monero’s stricter network target, so they do not create blocks.
Whether you use a browser-based miner or a dedicated mining app, the nonce’s basic job stays the same.
The bottom line
A nonce is a value your miner changes to make another attempt. It is not a coin, a password, or a reward—it is one small part of the repeated search for a valid block.
