Crypto mining legality worldwide
As of May 2026 mining is lawful in most of the world and is regulated mainly through energy and tax rules. A minority of countries ban or restrict it. China prohibits mining, Kosovo banned it on energy grounds, and Iran allows it only under licence.
Mining is legal almost everywhere crypto is legal. The real questions are electricity rules, registration, and tax, not whether mining itself is a crime.
Quick answer
As of May 2026 cryptocurrency mining is legal in most of the world. Where holding and trading crypto is lawful, mining is usually lawful too, and it is treated as an ordinary commercial or industrial activity. A minority of countries ban or tightly restrict mining, almost always for reasons tied to electricity supply or to a wider crypto ban, rather than because mining itself is treated as a crime. The clearest prohibitions sit in China and, on energy grounds, Kosovo, while Iran allows mining only under a government licence. Because most mining rules are about power use and registration rather than a simple legal or illegal switch, you should confirm both the national position and any local or regional rule before you set up.
What mining is and why it gets regulated
Mining is the process that secures proof of work blockchains such as Bitcoin by having specialised computers compete to validate transactions in exchange for newly issued coins and fees. Regulators rarely treat the act of validating a blockchain as inherently wrong. What draws attention is the electricity it consumes and, in some cases, the noise, the imported hardware, and the question of how the resulting income is taxed. As a result, mining law tends to live in energy policy, business licensing, and tax codes rather than in a single dedicated statute, and the position can differ between the national government and a regional or municipal authority.
Countries that ban or restrict mining
China operates the best known prohibition. As of May 2026 the comprehensive crackdown announced by Chinese authorities in 2021, which directed the closure of mining operations and barred crypto trading services, remains in force. Kosovo introduced a ban on crypto mining in early 2022 during an acute energy crisis, citing the strain on the national grid and the cost of subsidised electricity. Because that measure was framed as an emergency response, anyone considering activity there should verify the current standing with the national authorities rather than assume it has lapsed.
Iran takes a licensing approach rather than an outright ban. As of May 2026 mining is permitted only for operators who register with the authorities and meet conditions on tariffs and power use, and the authorities periodically suspend licensed activity during peak electricity demand while pursuing unlicensed miners. Several countries that ban crypto generally, such as Algeria, Egypt, Bangladesh, and Nepal, also prohibit mining as part of that wider ban. Where a country bans crypto outright, assume mining is caught by the same prohibition unless an official source says otherwise.
Where mining is legal and common
Mining is widespread and lawful across much of the Americas, Europe, the Gulf, and Central Asia. In the United States mining is legal at the federal level and is a sizeable industry, although treatment varies by state and locality: some jurisdictions actively court miners with power agreements while others have imposed moratoriums or zoning limits on certain operations, and New York drew attention with a temporary restriction on some carbon based proof of work mining. Canada hosts large operations, particularly where hydroelectric power is abundant, subject to provincial energy rules.
Russia moved from tolerating mining to formally regulating it: legislation that took effect at the end of 2024 recognises mining as a lawful activity, requires operators above set thresholds to register, and allows the government to restrict or ban mining in specific regions facing power shortages. Several Gulf and Central Asian states, along with Paraguay and others with surplus generation, also host significant mining under local licensing and tariff regimes. As of May 2026 the common pattern in these places is permitted but regulated, with the detail sitting in energy and registration rules.
Energy rules and how mining income is taxed
Even where mining is clearly legal, two layers of rule usually apply. The first is energy and operational regulation: special industrial tariffs, grid connection approvals, limits during peak demand, and in some places environmental or noise conditions. The second is tax. Many tax authorities treat mining rewards as income valued at the moment the coins are received, with a later capital gain or loss when the coins are sold. The United States Internal Revenue Service, for example, treats mining rewards as ordinary income at fair market value on receipt. Rates, allowances, and the treatment of hobby versus business mining differ widely by country, so the tax position should be checked locally and this is not tax advice.
| Jurisdiction | Mining position (as of May 2026) | Lead authority |
|---|---|---|
| China | Prohibited under the 2021 crackdown | People's Bank of China and state agencies |
| Iran | Allowed only with a government licence | Ministry of Industry and energy authorities |
| Kosovo | Banned in 2022 on energy grounds; confirm current status | Government of Kosovo |
| United States | Legal federally; varies by state and locality | Federal and state authorities |
| Russia | Legal and regulated since end of 2024; regional limits | Federal Tax Service and government |
| Most other countries | Legal where crypto is legal, subject to energy and tax rules | National energy and tax authorities |
Regulator and sources
Lead authorities appear above. The descriptions draw on national announcements and reputable tracking of mining policy, reviewed as of May 2026. Where a position was framed as an emergency or is enforced unevenly, we say so rather than overstate it.
- People's Bank of China and Chinese state notices on crypto activity (pbc.gov.cn)
- Iran Ministry of Industry, Mine and Trade, licensed mining framework
- United States Internal Revenue Service, virtual currency guidance (irs.gov)
- Russian Federation mining legislation in force from end of 2024 and Federal Tax Service registration
- Reputable cross country trackers of mining legality, cross checked against national sources
Check which regulated platforms are available where you live
Many people who follow mining also buy and hold crypto through a regulated exchange. Availability depends on your country, so use the country pages to confirm which platforms are genuinely available to you before signing up.
Subscribe to The Compliance Ledger
One short email when a rule changes that affects where you live or trade. Information, never advice.
Frequently asked questions
Is crypto mining legal?
In most countries, yes. As of May 2026 mining is lawful wherever holding and trading crypto is lawful, and it is usually regulated through energy and tax rules rather than banned. A minority of countries prohibit or restrict it, most notably China, and Iran allows it only under licence.
Which countries ban crypto mining?
As of May 2026 China prohibits mining under its 2021 crackdown, Kosovo banned it in 2022 on energy grounds, and countries that ban crypto generally, such as Algeria, Egypt, Bangladesh, and Nepal, also bar mining. Iran allows mining only with a government licence. Verify the current position with the national authority before acting.
Do I pay tax on mining rewards?
Usually yes. Many tax authorities, including the United States Internal Revenue Service, treat mining rewards as income at their value when received, with a separate capital gain or loss on later sale. Rates and the hobby versus business distinction vary by country. This is general information, not tax advice, so confirm with a local professional.
Is Bitcoin mining legal in the United States?
Yes at the federal level as of May 2026, and it is a large industry. Treatment varies by state and locality, with some areas encouraging operations and others imposing moratoriums or zoning limits, so check the rules for your specific state and municipality.
Why do some countries ban mining?
Almost always because of electricity. Mining is energy intensive, and bans such as Kosovo's in 2022 were responses to grid strain and subsidised power, while Iran suspends licensed mining during peak demand. Other prohibitions simply follow a country's wider ban on crypto.
Is this legal advice?
No. This is general information, not legal, tax, or financial advice. Mining rules change with energy policy and differ by region, so confirm the current position with the relevant regulator and a qualified professional before acting.