<p>The cost consists from two parts.</p>

<ol>
<li>Cost of hardware</li>
<li>Cost of electricity during attack</li>
</ol>

<p>The market cost of miner which is not able to mine with profit is... zero. Because it is useless. The problem is only to collect such devices and turn them on for an hour or two.</p>

<p>We will see a lot of obsolete hardware for a very cheap price right after the halving the award.</p>

CC BY-SA 3.0
2016-03-07T14:48:26.743Z
2016-03-07T14:48:26.743Z
amaclin
<p>An update as of Feb 2018. </p>

<p>The hashing power of the network is currently 24M TH/S. 
The most powerful Antminer costs $1800 and can generate 14TH/S. </p>

<p>You'd need to 24M/14 = 1.7 million of these to control ~50% of the bitcoin network. That would cost ~$3B USD. </p>

<p>Each miner consumes 1.4 kw per hour. The average cost of a kilowatt hour in the U.S. is 12 cents. </p>

<p>So to run all of these miners would cost 12 cents * 1.4 kw/h * 1.7M antminers = $285,000/hour. </p>

<p>So that's $3B up front for hardware plus $285,000/hour to control the network. </p>

<p>Granted that leaves out a lot of practical considerations like how one could obtain 1.7 million ant miners, how much work it would take to get those all up and running, where you'd get that much electricity, etc. </p>

<p>This also is considering the cost of launching an attack for an entity that currently controls 0% of the existing mining pool.</p>

CC BY-SA 3.0
2018-02-06T19:58:13.553Z
2018-02-06T19:58:13.553Z
Peter Berg
<p>There is a handy chart at <a href="https://en.bitcoin.it/wiki/Mining_hardware_comparison" rel="noreferrer">https://en.bitcoin.it/wiki/Mining_hardware_comparison</a>.</p>

<p>If we assume that it is complete, and that the figures listed there are accurate (I have not verified them), and that the attacker must buy the hardware, then the most economical device is the Antminer S5+, which produces 7.7 TH/s (7.7e12 H/s) and costs US$2300.  It draws 3.4 kW.</p>

<p>The current network difficulty is about 5.6e10.  This means that an average of 5.6e10 x 2^32 = 2.4e20 hashes are needed to mine one block.  Assuming that one block is mined each 10 minutes (600 seconds) on average, the network as a whole is producing 2.4e20 / 600 = 4.0e17 H/s.</p>

<p>So a 51% attacker needs to produce about 4.0e17 H/s himself, to match or slightly exceed the hashing power of the existing network.  This means he needs 4.0e17 / 7.7e12 = 52000 Antminer S5+ devices, which would cost 52000 x $2300 = $120 million.</p>

<p>(This is unrealistic in a couple of ways - buying that many devices would not only drive up the price but probably exceed the production capacity.  On the other hand, such a large order might qualify for a quantity discount or wholesale pricing.  This attacker might also find it more efficient to license the design and do the manufacturing themselves.)</p>

<p>Running these machines would consume 52000 x 3.4 kW = 177 MW of power.  If the attacker is located in the US, <a href="http://www.eia.gov/electricity/monthly/epm_table_grapher.cfm?t=epmt_5_6_a" rel="noreferrer">this table</a> shows that the cheapest place to get electricity at an industrial rate is Washington State, where it costs an average of 4.5 US cents per kWh.  At this rate, the attack would cost US$8000 per hour to supply with electricity.</p>

<p>If they are all to be located in one place, there will be additional costs to build / rent and operate a facility to house them all, with appropriate electrical infrastructure.  There will also need to be significant network and server infrastructure to connect them all to the Bitcoin network.  Cooling costs will also be substantial - Google <a href="http://www.google.com/about/datacenters/efficiency/internal/" rel="noreferrer">says</a> that their data centers have electrical overhead of about 12% (i.e., on top of the electricity used by the equipment itself, an additional 12% is used for cooling, power supply losses, etc).  They say that the industry average is more like 70%.  You would also have to hire an IT staff to maintain everything.</p>

<p>This overhead might be reduced if the devices were to be distributed (e.g. each of 52000 people keeps one in their house) but then you start to incur administrative costs to keep all those people organized.  (Just picture the communications department to tell them what to do, accounting to make sure they all get their cut of the proceeds from this evil scheme, human resources to recruit new participants, etc.)</p>

CC BY-SA 3.0
2015-09-17T19:02:15.930Z
Awesome answer, thx very cool link!! i just modified calculation a little. Its a known fact that they advertise always a little more GH/s than they are able to deliver (reduced by 10%). Gh/s of Network: http://bitcoincharts.com/ so you need:  62.987 machines x 2307$ = about 145 Mill. $ hardware cost.  Thx for that very rich answer and additional valuable info...You are my hero...
user54512
CC BY-SA 3.0
2015-09-18T20:38:06.613Z
Doesn't seem simpler to create zombie machines via a virus or some such with which you can do a short term hack?  Turn the system on, do 51% attack, turn them off and thus keep yourself undetected and then carry out short attacks whenever you feel like it?  I don't know this stuff but that sounds kind of easy for a bot net or something.
Adam Heeg
CC BY-SA 3.0
2015-09-18T22:47:44.373Z
@AdamHeeg: Once upon a time that was feasible, today not so much.  Ordinary computers are ***far*** less efficient at mining than ASICs.  In [this chart](https://en.bitcoin.it/wiki/Non-specialized_hardware_comparison) you can see that a typical CPU produces maybe 20 MH/s.  You need 20 billion average desktop computers in your botnet to mount this 51% attack.  I don't think there are that many on the planet.  Specialized hardware is really essential.
Nate Eldredge
CC BY-SA 3.0
2015-09-17T16:50:08.443Z
2015-09-17T18:35:50.460Z
2015-09-17T18:35:50.460Z
Nate Eldredge
<p>how much would it cost to carry out an 51%-Attack? 
If there is a place service in the web that you can rent ASIC's than i would rather hear what renting this would cost. If not then buying the asics is fine too.</p>

<p>To keep the calculation KiSS following assumptions:</p>

<ol>
<li>Attacker chooses the cheapest way of renting/buying hardware. But he is NOT renting/bribing whatever the existing machines from miners from the existing bitcoin network. The gear has to come from outside the network.</li>
<li>Don't worry about that renting/buying such a huge qt would drive the price for the hardware up. </li>
<li>Ignore what the community would do, the cored devs or whoever to counterstrike your attack.</li>
<li>you don't need to include electricity cost in the calculation. If you do include it, please tell what you took for US-Cents/kw/h</li>
</ol>

<p>Thank you!</p>

<p>P.S. is there a website that does this calculations on a regular basis? Would be cool to check this from time to time..</p>

<p>Update 4 Years later ond June 2019: The Hashrate of the Entire Network is right now (according to Bitinfocharts.com): 55,42 ExaHashes. Most efficient Miner is the DragonMint which has exactly (and realisticaly) 16 TH/s and costs including with power supply 2844USD. One would need 55 420 000 TH/s /16 TH/s =3,46 millin Dragon Mints * ~ 2800USD (included a small rebate)~ 9,8 billion USD. Crazy how the cost increased in the last 4 years from 145 Million to almost 10 billion...</p>

<p><strong>EDIT X Years old answers to this question don't matter at all. This question needs to answered every 6 months. Entirely new generations of Asic-miners, change picture a LOT</strong></p>

CC BY-SA 3.0
2015-09-17T16:52:51.120Z
possible duplicate of [How much would it cost to execute a 51% attack?](http://bitcoin.stackexchange.com/questions/1093/how-much-would-it-cost-to-execute-a-51-attack), though the answers there are out of date.  Should I move my answer to that question?
Nate Eldredge
CC BY-SA 3.0
2015-09-17T17:33:07.143Z
1. a 4 Year old answer is totally useless. 2. My focus is more on renting, more last resort buying. 3. Assumptions different.
user54512
CC BY-SA 3.0
2015-09-17T18:26:06.143Z
As I mentioned in my answer, I think Assumption 2 is kind of an understatement.  Renting or buying this much hardware would not only drive up the price but far exceed the amount available on the market (in a sense, it would drive up the price to infinity).  I answered the question based on the assumption that one can buy arbitrary amounts of hardware at the current market price, but we should note that this is highly unrealistic.
Nate Eldredge
CC BY-SA 3.0
2015-09-17T19:10:50.950Z
You are right in a way, but without assumption 2 it would basically focus on speculation on how the "supply curve" of mining hardware is and that would be pointless. Also i think an attacker would contact a manufacturer directly and get his custom build in this case no higher cost and maybe even 10% or so more efficiency (newer generation)..
user54512
CC BY-SA 3.0
2015-09-18T02:42:52.810Z
Why buy it? If you want to do something criminal you would just want to steal it instead. It's silly to model attack scenarios based on what honest people can purchase the stuff for.
Claris
CC BY-SA 3.0
2017-07-20T20:57:57.810Z
@Bitcoin You CAN'T steal that much hardware because it DOESN'T EXIST.  You would have to pay the manufacturer directly, largely in advance, and they would have to seriously beef up production to actually produce in these sorts of quantities.
wedstrom
CC BY-SA 3.0
2017-07-28T00:52:32.430Z
You can use BGP route hijacking to just borrow other peoples, it's not correct to model things on hardware costs when you can just steal other people's.
Claris
<majority-attack>
How much would it cost to do a 51% attack
user54512
# How much would it cost to do a 51% attack

(Asked by: username_0 on 2015-09-17)

how much would it cost to carry out an 51%-Attack?
If there is a place service in the web that you can rent ASIC's than i would rather hear what renting this would cost. If not then buying the asics is fine too.

To keep the calculation KiSS following assumptions:

1. Attacker chooses the cheapest way of renting/buying hardware. But he is NOT renting/bribing whatever the existing machines from miners from the existing bitcoin network. The gear has to come from outside the network.
2. Don't worry about that renting/buying such a huge qt would drive the price for the hardware up.
3. Ignore what the community would do, the cored devs or whoever to counterstrike your attack.
4. you don't need to include electricity cost in the calculation. If you do include it, please tell what you took for US-Cents/kw/h

Thank you!

P.S. is there a website that does this calculations on a regular basis? Would be cool to check this from time to time..

Update 4 Years later ond June 2019: The Hashrate of the Entire Network is right now (according to Bitinfocharts.com): 55,42 ExaHashes. Most efficient Miner is the DragonMint which has exactly (and realisticaly) 16 TH/s and costs including with power supply 2844USD. One would need 55 420 000 TH/s /16 TH/s =3,46 millin Dragon Mints \* ~ 2800USD (included a small rebate)~ 9,8 billion USD. Crazy how the cost increased in the last 4 years from 145 Million to almost 10 billion...

**EDIT X Years old answers to this question don't matter at all. This question needs to answered every 6 months. Entirely new generations of Asic-miners, change picture a LOT**

**Tags:** majority-attack

> **Comments:**
> **username_1**: possible duplicate of [How much would it cost to execute a 51% attack?](http://bitcoin.stackexchange.com/questions/1093/how-much-would-it-cost-to-execute-a-51-attack), though the answers there are out of date.  Should I move my answer to that question?  
> **username_0**: 1. a 4 Year old answer is totally useless. 2. My focus is more on renting, more last resort buying. 3. Assumptions different.  
> **username_1**: As I mentioned in my answer, I think Assumption 2 is kind of an understatement.  Renting or buying this much hardware would not only drive up the price but far exceed the amount available on the market (in a sense, it would drive up the price to infinity).  I answered the question based on the assumption that one can buy arbitrary amounts of hardware at the current market price, but we should note that this is highly unrealistic.  
> **username_0**: You are right in a way, but without assumption 2 it would basically focus on speculation on how the "supply curve" of mining hardware is and that would be pointless. Also i think an attacker would contact a manufacturer directly and get his custom build in this case no higher cost and maybe even 10% or so more efficiency (newer generation)..  
> **username_2**: Why buy it? If you want to do something criminal you would just want to steal it instead. It's silly to model attack scenarios based on what honest people can purchase the stuff for.  
> **username_3**: @Bitcoin You CAN'T steal that much hardware because it DOESN'T EXIST.  You would have to pay the manufacturer directly, largely in advance, and they would have to seriously beef up production to actually produce in these sorts of quantities.  
> **username_2**: You can use BGP route hijacking to just borrow other peoples, it's not correct to model things on hardware costs when you can just steal other people's.  

---

## 3 answers

### Answer by username_1 on 2015-09-17. Score: 8 | Accepted answer

There is a handy chart at <https://en.bitcoin.it/wiki/Mining_hardware_comparison>.

If we assume that it is complete, and that the figures listed there are accurate (I have not verified them), and that the attacker must buy the hardware, then the most economical device is the Antminer S5+, which produces 7.7 TH/s (7.7e12 H/s) and costs US$2300. It draws 3.4 kW.

The current network difficulty is about 5.6e10. This means that an average of 5.6e10 x 2^32 = 2.4e20 hashes are needed to mine one block. Assuming that one block is mined each 10 minutes (600 seconds) on average, the network as a whole is producing 2.4e20 / 600 = 4.0e17 H/s.

So a 51% attacker needs to produce about 4.0e17 H/s himself, to match or slightly exceed the hashing power of the existing network. This means he needs 4.0e17 / 7.7e12 = 52000 Antminer S5+ devices, which would cost 52000 x $2300 = $120 million.

(This is unrealistic in a couple of ways - buying that many devices would not only drive up the price but probably exceed the production capacity. On the other hand, such a large order might qualify for a quantity discount or wholesale pricing. This attacker might also find it more efficient to license the design and do the manufacturing themselves.)

Running these machines would consume 52000 x 3.4 kW = 177 MW of power. If the attacker is located in the US, [this table](http://www.eia.gov/electricity/monthly/epm_table_grapher.cfm?t=epmt_5_6_a) shows that the cheapest place to get electricity at an industrial rate is Washington State, where it costs an average of 4.5 US cents per kWh. At this rate, the attack would cost US$8000 per hour to supply with electricity.

If they are all to be located in one place, there will be additional costs to build / rent and operate a facility to house them all, with appropriate electrical infrastructure. There will also need to be significant network and server infrastructure to connect them all to the Bitcoin network. Cooling costs will also be substantial - Google [says](http://www.google.com/about/datacenters/efficiency/internal/) that their data centers have electrical overhead of about 12% (i.e., on top of the electricity used by the equipment itself, an additional 12% is used for cooling, power supply losses, etc). They say that the industry average is more like 70%. You would also have to hire an IT staff to maintain everything.

This overhead might be reduced if the devices were to be distributed (e.g. each of 52000 people keeps one in their house) but then you start to incur administrative costs to keep all those people organized. (Just picture the communications department to tell them what to do, accounting to make sure they all get their cut of the proceeds from this evil scheme, human resources to recruit new participants, etc.)

> **Comments:**
> **username_0**: Awesome answer, thx very cool link!! i just modified calculation a little. Its a known fact that they advertise always a little more GH/s than they are able to deliver (reduced by 10%). Gh/s of Network: http://bitcoincharts.com/ so you need:  62.987 machines x 2307$ = about 145 Mill. $ hardware cost.  Thx for that very rich answer and additional valuable info...You are my hero...  
> **username_6**: Doesn't seem simpler to create zombie machines via a virus or some such with which you can do a short term hack?  Turn the system on, do 51% attack, turn them off and thus keep yourself undetected and then carry out short attacks whenever you feel like it?  I don't know this stuff but that sounds kind of easy for a bot net or something.  
> **username_1**: @username_6: Once upon a time that was feasible, today not so much.  Ordinary computers are ***far*** less efficient at mining than ASICs.  In [this chart](https://en.bitcoin.it/wiki/Non-specialized_hardware_comparison) you can see that a typical CPU produces maybe 20 MH/s.  You need 20 billion average desktop computers in your botnet to mount this 51% attack.  I don't think there are that many on the planet.  Specialized hardware is really essential.  

---

### Answer by username_4 on 2016-03-07. Score: 1

The cost consists from two parts.

1. Cost of hardware
2. Cost of electricity during attack

The market cost of miner which is not able to mine with profit is... zero. Because it is useless. The problem is only to collect such devices and turn them on for an hour or two.

We will see a lot of obsolete hardware for a very cheap price right after the halving the award.


---

### Answer by username_5 on 2018-02-06. Score: 0

An update as of Feb 2018.

The hashing power of the network is currently 24M TH/S.
The most powerful Antminer costs $1800 and can generate 14TH/S.

You'd need to 24M/14 = 1.7 million of these to control ~50% of the bitcoin network. That would cost ~$3B USD.

Each miner consumes 1.4 kw per hour. The average cost of a kilowatt hour in the U.S. is 12 cents.

So to run all of these miners would cost 12 cents \* 1.4 kw/h \* 1.7M antminers = $285,000/hour.

So that's $3B up front for hardware plus $285,000/hour to control the network.

Granted that leaves out a lot of practical considerations like how one could obtain 1.7 million ant miners, how much work it would take to get those all up and running, where you'd get that much electricity, etc.

This also is considering the cost of launching an attack for an entity that currently controls 0% of the existing mining pool.


---

