<p>I've seen this question several times, and us puny humans don't understand how HUGE! big numbers are. So, let me put it this way:</p>

<p>If there are a million people on the bitcoin network, and they each have a million accounts each, and if you can create 30 peta-accounts per second, generate the public key, and check if that public key has money (30 petahashes is approx the current bitcoin network hashrate, and you would need to hash each key).</p>

<p>In 1.5x10^9 millennia, you have about a 50% chance of getting the same wallet as someone else. Before then, there will be over 27,000 extinction level events - events which will kill over 50% of the life on earth - not counting man-made ones.</p>

<p>Also note that the Birthday paradox doesn't apply here; a collision is only relevant if one has money in it at some point now or in the future.</p>

CC BY-SA 3.0
2014-03-10T07:58:17.513Z
Very nicely described. Thank you for your answer!
Vikram
CC BY-SA 3.0
2014-03-10T18:37:31.740Z
Our sun does not have enough fuel for anywhere near 1.5x10^9 millennia - in a few billion years it will become a red giant and all life on earth would be killed...
uminatsu
CC BY-SA 3.0
2014-03-10T19:29:36.020Z
I chose the extinction level events, because it's a probabilistic event; this is to counter people saying "well, it's just chance, isn't it? You MIGHT duplicate a wallet on the first try"; yes, and we MIGHT get 27,000 asteroids raining down in the next 5 minutes.
AMADANON Inc.
CC BY-SA 3.0
2014-03-10T03:13:18.910Z
2014-03-10T19:31:21.963Z
2014-03-10T19:31:21.963Z
AMADANON Inc.
<p>The probability is unfathomably small. In practice it will never happen. You can find one billion friends all keep generating trillions of addresses every second and there won't be any duplicate addresses til the end of the life of the sun.</p>

<p>Edit: this actually exaggerated a bit. By virtue of the Birthday Paradox you only need to generate 2^80 addresses (not 2^160) to likely get a pair of duplicate addresses among all the addresses generated. So this address generating party won't be able to run that long.</p>

<p>On the other hand if your billion friends all keep generating addresses in an attempt to get the same address as yours, then it does take forever to happen.</p>

CC BY-SA 3.0
2014-03-09T05:48:08.723Z
2014-03-09T07:11:19.697Z
2014-03-09T07:11:19.697Z
uminatsu
<p>I'm a newbie to Bitcoin, so I apologize if this seems like a "noob" question.</p>

<p>So, from what I've read: anyone can create a new Bitcoin wallet. Upon creation, a wallet address is automatically generated. The wallet address can be used by others to make transactions to that particular wallet.</p>

<p>Now, my question is, what guarantees that two automatically generated wallet addresses will be unique? If my friend and I created separate wallets on our own computers <em>offline</em>, then what is the guarantee that the two wallet addresses will be unique? What if the two randomly generated wallet addresses turned out to be the same?</p>

<wallet><public-key>
What if duplicate wallet addresses are created?
Vikram
# What if duplicate wallet addresses are created?

(Asked by: username_0 on 2014-03-09)

I'm a newbie to Bitcoin, so I apologize if this seems like a "noob" question.

So, from what I've read: anyone can create a new Bitcoin wallet. Upon creation, a wallet address is automatically generated. The wallet address can be used by others to make transactions to that particular wallet.

Now, my question is, what guarantees that two automatically generated wallet addresses will be unique? If my friend and I created separate wallets on our own computers *offline*, then what is the guarantee that the two wallet addresses will be unique? What if the two randomly generated wallet addresses turned out to be the same?

**Tags:** wallet, public-key


---

## 2 answers

### Answer by username_2 on 2014-03-09. Score: 4 | Accepted answer

The probability is unfathomably small. In practice it will never happen. You can find one billion friends all keep generating trillions of addresses every second and there won't be any duplicate addresses til the end of the life of the sun.

Edit: this actually exaggerated a bit. By virtue of the Birthday Paradox you only need to generate 2^80 addresses (not 2^160) to likely get a pair of duplicate addresses among all the addresses generated. So this address generating party won't be able to run that long.

On the other hand if your billion friends all keep generating addresses in an attempt to get the same address as yours, then it does take forever to happen.


---

### Answer by username_1 on 2014-03-10. Score: 4

I've seen this question several times, and us puny humans don't understand how HUGE! big numbers are. So, let me put it this way:

If there are a million people on the bitcoin network, and they each have a million accounts each, and if you can create 30 peta-accounts per second, generate the public key, and check if that public key has money (30 petahashes is approx the current bitcoin network hashrate, and you would need to hash each key).

In 1.5x10^9 millennia, you have about a 50% chance of getting the same wallet as someone else. Before then, there will be over 27,000 extinction level events - events which will kill over 50% of the life on earth - not counting man-made ones.

Also note that the Birthday paradox doesn't apply here; a collision is only relevant if one has money in it at some point now or in the future.

> **Comments:**
> **username_0**: Very nicely described. Thank you for your answer!  
> **username_2**: Our sun does not have enough fuel for anywhere near 1.5x10^9 millennia - in a few billion years it will become a red giant and all life on earth would be killed...  
> **username_1**: I chose the extinction level events, because it's a probabilistic event; this is to counter people saying "well, it's just chance, isn't it? You MIGHT duplicate a wallet on the first try"; yes, and we MIGHT get 27,000 asteroids raining down in the next 5 minutes.  

---

