The legality of biohacking varies by country and context. Some forms of biohacking, like dietary and lifestyle experiments, are generally legal. However, genetic modifications and other more invasive practices often fall into a gray area or are outright illegal without proper authorization. Regulatory bodies are still catching up to the rapid advancements in the field.