The last bitcoin is expected to be mined sometime around the year 2140. The supply of bitcoin is limited to a final cap of 21 million . This is determined by bitcoin’s source code which was programmed by its creator(s), Satoshi Nakamoto, and cannot be changed.