What is 'Difficulty (Cryptocurrencies)'

Difficulty is a parameter that bitcoin and other cryptocurrencies use to keep the average time between blocks steady as the network's hash power changes.

BREAKING DOWN 'Difficulty (Cryptocurrencies)'

Bitcoin and other cryptocurrencies that use proof-of-work blockchains are maintained through a process called mining. In this system, miners – computers running the cryptocurrency's software client – compete to find a new block, adding the most recent batch of transaction data to the chain. They receive fees and a (in some cases) a reward of new tokens in return. (See also, Merkle Tree.)

The time it takes to find a new block is subject to two factors: random chance and difficulty. Start with random chance. Miners take a batch of transaction data and run it through a hash algorithm, a one-way function that – given a particular set of data – will always produce the same output, but whose output cannot be reversed to show the original data. There is no way of predicting what a hash will be. A new block is found when the hash meets a certain requirement. Since each set of data has only one output for a given hash function, miners must add a nonce – a "number used once" – to the data to obtain a new hash. If the result still does not meet the requirement, the miner tries again with a new nonce.

The requirement a hash must meet corresponds to the difficulty: a valid hash must be below a certain target value set automatically (and periodically adjusted) by the cryptocurrency's protocol. The lower the target value, the more repetitions of the hash function a miner must go through in order to get an acceptable result – in other words, the higher the difficulty. A miner can, in theory, get lucky and obtain a valid hash for a given block on the first try: over time, however, higher difficulty means that miners must plug through more nonces per block on average. (See also, How Does Bitcoin Mining Work?)

What Purpose Does Difficulty Serve?

Why set higher difficulty, if the only practical result is that miners must repeat the same function more? The bitcoin whitepaper explains:

"To compensate for increasing hardware speed and varying interest in running nodes over time, the proof-of-work difficulty is determined by a moving average targeting an average number of blocks per hour. If they're generated too fast, the difficulty increases."

Bitcoin is designed to add a new block to the blockchain every 10 minutes on average. (Other cryptocurrencies aim for more frequent blocks; litecoin, for example, aims for 2.5 minutes.) The issue is that the amount of computing power the network's miners collectively control can vary enormously. When Satoshi Nakamoto mined the first block, there was only one machine on the network – likely a simple laptop or desktop. Today there are a number of sprawling, warehouse-sized ASIC farms (ASICs are machines designed specifically to plow through hash functions as fast as possible).

In order to ensure that the network produces a new block at a steady average rate, the software is set to automatically adjust the target hash up or down, which results in lower or higher difficulty, respectively. When Nakamoto mined the genesis block, bitcoin's difficulty was 1.

To check bitcoin difficulty in real time, you can consult this chart.

As of late January 2018, it is 2,603,077,300,218.593. The chart below shows bitcoin's change in difficulty over time:

RELATED TERMS
  1. Nonce

    Nonce is a number added to a hashed block, that, when rehashed, ...
  2. Proof of Work

    Proof of work describes the process that allows the bitcoin network ...
  3. Block Time (Cryptocurrency)

    Block time is the average time for a new block to be generated ...
  4. Proof of Capacity (Cryptocurrency)

    Proof of Capacity consensus mechanism uses a mining node’s hard ...
  5. Block Header (Cryptocurrency)

    A block header is the unique identity of a particular block on ...
  6. Application-Specific Integrated ...

    An application-specific integrated circuit (ASIC) is a piece ...
Related Articles
  1. Tech

    How Bitcoin Works

    Miners, hashes, keys, cold storage, blocks - it's confusing. We can help you understand how bitcoin works.
  2. Trading

    Bitcoin Cash: The New King of Cryptocurrency?

    Investors are wondering if the popularity of Bitcoin Cash poses a serious threat to the Bitcoin throne.
  3. Tech

    How Does Bitcoin Mining Work?

    Bitcoin mining, explained like you're five.
  4. Tech

    Is Bitcoin Mining Still Profitable?

    Recent changes in technology and the creation of professional mining centers individual miners are asking themselves, is bitcoin mining still profitable?
  5. Tech

    How Do You Mine Litecoin?

    This guide will give you a sense of the concepts in litecoin mining, an introduction to the vocabulary and suggestions for further research.
  6. Tech

    Bitcoin Cash Miners Took a Loss on Purpose

    When bitcoin cash became substantially more difficult to mine, it saw its profitability decrease. And yet, some miners continued to focus on it. Why?
  7. Tech

    What is the Genesis Block in Bitcoin Terms?

    Learn more about the Genesis Block, the original Bitcoin block.
  8. Tech

    Bitcoin vs. Bitcoin Cash: What's the Difference?

    We break down the difference between Bitcoin and Bitcoin Cash, and what it might mean for the future of cryptocurrencies
  9. Tech

    Do Bitcoin Mining Energy Costs Influence Its Price?

    Given that energy costs account for 90% to 95% of bitcoin production costs, what influence do they exert on its prices?
  10. Tech

    Bitcoin Unlimited Thwarted, Again!

    Bitcoin Unlimited is vying for supremacy in the Game of Bitcoins, but it's got some problems.
Hot Definitions
  1. Compound Annual Growth Rate - CAGR

    The Compound Annual Growth Rate (CAGR) is the mean annual growth rate of an investment over a specified period of time longer ...
  2. Net Present Value - NPV

    Net Present Value (NPV) is the difference between the present value of cash inflows and the present value of cash outflows ...
  3. Price-Earnings Ratio - P/E Ratio

    The Price-to-Earnings Ratio or P/E ratio is a ratio for valuing a company that measures its current share price relative ...
  4. Internal Rate of Return - IRR

    Internal Rate of Return (IRR) is a metric used in capital budgeting to estimate the profitability of potential investments.
  5. Limit Order

    An order placed with a brokerage to buy or sell a set number of shares at a specified price or better.
  6. Current Ratio

    The current ratio is a liquidity ratio that measures a company's ability to pay short-term and long-term obligations.
Trading Center