← PPLNS

Version 2

Dec 5, 2026. Compare with the current version · Version history

PPLNS ("pay per last N shares") is a way for a Bitcoin mining pool to divide a block reward: when the pool finds a block, the reward is shared among the miners who submitted the most recent shares, whether or not those shares came after the previous block.[1]

Shares and pooled mining

A mining pool lets many miners combine their work and split the reward according to each member's contribution, which spreads income more smoothly over time.[3] The unit of contribution is the share: proof of work of the same kind used for blocks, but at a lower difficulty, so shares are found often even when a block is rare.[3] Mining alone produces highly variable income. The Bitcoin Wiki gives the example of a miner at 1,000 kilohashes per second facing a difficulty of 14,484, who would wait almost two years on average to find a block.[3] (For the underlying idea, see Proof of work, Mining difficulty and Hash rate.)

A pool therefore needs a rule for turning shares into payments. Such a rule is called a reward system or payout scheme, and the early ones were set out and compared in a December 2011 paper by Meni Rosenfeld.[1] The simplest is the proportional method. A round is the time from one block found by the pool to the next; at the end of a round the operator keeps a fee and the rest of the reward is divided among miners in proportion to the shares each submitted in that round.[1]

The problem PPLNS answers: pool-hopping

Rosenfeld showed that the proportional method can be exploited. Because a block is found by chance, the number of shares in a round follows a geometric distribution with no memory: however many shares have already been submitted, the expected number still needed is unchanged.[1] Each share in a long round is worth less, since the reward is divided over more shares.[1] A miner who mines for the pool only early in each round and goes elsewhere when the round drags on earns more than a fair share, and the paper puts the break-even point at 43.5% of the difficulty in shares already submitted.[1] This practice is called pool-hopping, and the paper said that honest miners who stay continuously could in theory receive up to 43% less in the worst case.[1] It also cited tools such as bithopper as a sign the problem was significant.[1]

The first method designed on purpose to resist hopping was implemented in slush's pool: it gave each share a score that grows with the time elapsed in the round, and divided the reward by score.[1] Rosenfeld described this as a pioneering method with weaknesses of its own.[1] PPLNS is the other main answer, which removes rounds altogether.[1]

How PPLNS works

PPLNS is a family of methods rather than one formula. Instead of paying only those who submitted shares since the last block, it pays those who submitted shares recently, regardless of whether any block was found in that period. This removes the advantage of mining early in a round.[1]

In the simplest variant, a fixed number N is chosen and, each time the pool finds a block, each of the last N shares receives (1 − f)B / N, where B is the block reward and f is the operator's fee. A share therefore earns a payment for every block found within the next N shares.[1] If difficulty and reward stay constant, the expected payout per share is (1 − f)pB, where p is the chance that any one share is a block.[1] The number of blocks found within a share's window follows a Poisson distribution. As an example the paper gives N equal to the difficulty and f equal to zero, where the chance a share is paid for no block at all is 36.79% and for exactly one block is 36.79%.[1] A share's payments arrive spread over the window that follows it, rather than at once.[1]

Choosing N is a trade-off. A larger N lowers the variance of a miner's income but lengthens the time until payments mature; the paper states that the product of the two is a constant.[1] The simple variant is not fully proof against hopping when difficulty changes, because a share's contribution is set by today's difficulty while its reward depends on future difficulty; the paper proposes a refinement it calls unit-PPLNS to close that gap.[1]

Foundry USA Pool's version

The Foundry USA Pool's published methodology describes PPLNS as a share of the full reward for each block the pool finds, based on a miner's work within a window of 8 times the network difficulty.[2] According to that page, earnings depend on how many blocks the pool finds, are credited at 05:00:00 UTC the following day, and pay nothing for orphaned blocks.[2] The page carries no publication date, so the figures above are as shown when it was read on 5 December 2026.[2]

Pay-per-share, the main alternative

Pay-per-share (PPS) is the method PPLNS is most often set against. In PPS the operator pays each share the moment it is submitted, at the share's expected value of (1 − f)pB, where f is the fee, p the chance that one share is a block and B the block reward, no matter how many blocks are eventually found; the operator keeps the rewards of the blocks the pool finds.[1] The Bitcoin Wiki describes it as an instant flat payout for each share, paid from the pool's existing balance, which gives miners the least possible variance while transferring all risk to the pool operator.[3]

For miners the paper lists several advantages: the reward per share has no variance, there is no waiting for a block, the payment is easy to describe and to verify, and pool-hopping is ineffective against the method.[1] The cost falls on the operator, whose variance is that of solo mining with the capacity of the whole pool, so that the paper calls PPS the riskiest reward system for the operator and expects the operator to charge a higher fee than with other methods.[1] It derives a reserve of at least B ln(1/δ) / 2f to keep the chance of bankruptcy below δ, and notes that the required reserves are higher than most people expect.[1] The Bitcoin Wiki likewise says the operator's possible loss is offset by setting the payout below the full expected value.[3] A variant, full pay-per-share (FPPS), is described there as keeping the advantages of PPS while sharing some of the transaction fees with miners.[3]

PPLNS, by comparison, is described in the paper as the standard way to build a hopping-proof pool without any operator risk.[1]

Variants and attacks

The step-shaped window of simple PPLNS is not the only possibility. The paper notes that any decay function can be used in place of it, that an exponential one is equivalent to its double geometric method with o = 1, and that a linear decay gives the best result by its measure of the trade-off between a miner's variance and the time until payments mature.[1] Two further variants are described. In pay-once PPLNS every share is paid at most once and is deleted after payment, so older shares get a chance to be paid for later blocks.[1] In shift-PPLNS, shares are grouped into shifts and each miner's score is kept per shift, which approximates standard PPLNS without storing every share while remaining hopping-proof.[1]

Hopping is not the only attack on a pool. In block withholding by sabotage, a participant finds valid blocks and never submits them. Under a scheme without operator risk such as PPLNS, the paper finds that every participant, the attacker included, loses a portion of rewards equal to the attacker's portion of the pool's hashrate, and notes that this is hard to detect.[1] Under a scheme that puts the operator at risk, such as PPS, the whole loss falls on the operator, who gains on average (f − h/H)pB per share, where h is the attacker's hashrate and H the pool's. Since f is typically only a few percent, this can easily be negative, and the paper observes that it can cause the pool's bankruptcy.[1]

Sources

  1. Meni Rosenfeld, "Analysis of Bitcoin Pooled Mining Reward Systems", arXiv:1112.4980, submitted 21 December 2011. arxiv.org/abs/1112.4980
  2. Foundry Digital LLC, "What is Foundry USA Pool's Payout Methodology?", Foundry USA Pool FAQ (undated; read 5 December 2026). pool-faq.foundrydigital.com/what-is-foundry-usa-pools-payout-method…
  3. Bitcoin Wiki, "Pooled mining" (read 5 December 2026). en.bitcoin.it/wiki/Pooled_mining