What Plant Is the Diabetes Drug Metformin Made From?

Metformin traces its origins to Galega officinalis, a flowering plant commonly known as goat’s rue or French lilac. The plant has been used in European herbal medicine for centuries to ease symptoms of what we now recognize as diabetes. But metformin itself is not extracted from the plant. It is a fully synthetic drug, manufactured in chemical laboratories, that was inspired by compounds naturally found in goat’s rue. The story of how a weedy legume led to the world’s most prescribed diabetes medication is one of the more interesting threads in pharmaceutical history.

Goat’s Rue and Its Long History With Diabetes

Galega officinalis is an herbaceous perennial legume native to parts of Europe, western Asia, and the Middle East. It grows in damp meadows and along stream banks, producing clusters of white or purple flowers. For centuries, European herbalists prescribed preparations made from its leaves and seeds to people suffering from excessive thirst and frequent urination, the hallmark symptoms of uncontrolled diabetes. The plant earned its common name “goat’s rue” because it was also fed to goats to supposedly increase milk production.

What the herbalists could not have known is that the plant is rich in a class of nitrogen-containing compounds called guanidines. In 1918, researchers demonstrated that guanidine itself could lower blood glucose in animals, which finally offered a chemical explanation for why goat’s rue preparations seemed to help people with diabetes.1PubMed. Metformin: historical overview The plant also contains a specific guanidine derivative called galegine, which is considered its dominant active alkaloid and the main compound behind its traditional antidiabetic reputation.2PubMed Central. Improving galegine production in transformed hairy roots of Galega officinalis L. via elicitation

From Plant Compound to Synthetic Drug

Once guanidine was identified as the blood-sugar-lowering agent in goat’s rue, chemists set to work creating synthetic versions. The idea was straightforward: if guanidine from a plant could lower glucose, perhaps a modified version could do the same thing more safely and predictably. Several guanidine derivatives were synthesized in the years following the 1918 discovery, and some of them were actually used to treat diabetes through the 1920s and 1930s.1PubMed. Metformin: historical overview

Those early drugs did not last. They turned out to be toxic at the doses needed to work, and they were largely abandoned once insulin became widely available. Metformin itself, a member of the biguanide family (meaning it has two linked guanidine units), was first synthesized in a laboratory setting around the same period using what one review describes as “very rudimentary methods which involved melting and strong heating.”3PubMed. Metformin, a biological and synthetic overview But it took decades before anyone seriously investigated metformin’s potential as a diabetes treatment. It was not until the 1950s that a French physician named Jean Sterne championed metformin’s clinical use, and it only became available in the United States in 1995.

So while goat’s rue is genuinely the botanical ancestor of metformin, the drug you pick up at a pharmacy has never touched the plant. Every metformin tablet is produced through industrial chemical synthesis. The plant provided the clue; chemistry built the medicine.

Why Metformin Is Not Simply an Extract

People sometimes assume that because metformin has a botanical origin story, it must be a refined plant extract, similar to how aspirin was originally derived from willow bark. The reality is different. Metformin is structurally related to the guanidine compounds in goat’s rue, but it is not the same molecule as galegine or any other compound you would find in the plant. Chemists deliberately modified the guanidine structure to create something that would be effective at lower doses and safer to use over the long term.

This distinction matters for a practical reason. Goat’s rue itself can be toxic. The plant contains enough galegine and related compounds to poison livestock that graze on it freely. Attempting to self-treat diabetes by consuming goat’s rue preparations instead of taking metformin would be dangerous and ineffective. Herbal supplements containing Galega officinalis are not equivalent to a controlled dose of metformin, and in some countries, the raw plant is classified as a noxious weed precisely because of its toxicity to animals.

How Metformin Works in the Body

Metformin’s primary job is to reduce the amount of glucose your liver dumps into the bloodstream.4PubMed Central. Metformin reduces liver glucose production by inhibition of fructose-1-6-bisphosphatase In type 2 diabetes, the liver tends to overproduce glucose even when blood sugar is already high. Metformin dials that process down. It does not force the pancreas to make more insulin, which is why it rarely causes dangerously low blood sugar on its own.

At the cellular level, metformin inhibits a specific part of the energy-production machinery inside cells, known as complex 1 of the mitochondrial respiratory chain.5Biochemical Journal. Evidence that metformin exerts its anti-diabetic effects through inhibition of complex 1 of the mitochondrial respiratory chain When complex 1 is partially blocked, cells shift their energy balance in ways that activate a key energy-sensing enzyme called AMPK.6PubMed. Metformin: Antidiabetic actions from cells to tissues Think of AMPK as an internal fuel gauge: when it senses that energy production has dipped, it triggers a cascade of responses that improve how the body handles sugar and fat. The liver produces less glucose, muscles take up more glucose from the blood, and overall insulin sensitivity improves.

That said, researchers acknowledge that not all of metformin’s effects are explained by this liver-centered mechanism. There is growing evidence that the gut plays a significant role too, possibly by altering how quickly sugar is absorbed from food or by changing the composition of intestinal bacteria.7PubMed Central. The mechanisms of action of metformin The full picture is still being pieced together after more than sixty years of clinical use, which is a humbling reminder that understanding why a drug works can lag far behind knowing that it works.

Metformin Beyond Type 2 Diabetes

Because metformin is cheap, well-tolerated, and has a long safety track record, researchers have explored it for conditions well beyond its original purpose. One of the more established off-label uses is in polycystic ovary syndrome, or PCOS. Women with PCOS often have insulin resistance, and metformin can improve insulin sensitivity, plasma glucose levels, and lipid profiles in these patients. Studies have also found that when women with PCOS continue metformin during pregnancy, it may reduce the rates of early pregnancy loss, preterm labor, and restricted fetal growth.8PubMed Central. Effects of metformin use in pregnant patients with polycystic ovary syndrome This is a specialized use guided by a physician, not a blanket recommendation for all pregnant women.

Perhaps the most attention-grabbing area of metformin research right now is aging. Several research groups have observed that people taking metformin for diabetes seem to experience lower rates of certain age-related diseases compared to what would be expected. This has led to a major clinical trial called TAME (Targeting Aging with Metformin), funded through the NIH’s Geroscience Network, which plans to enroll more than 3,000 people between the ages of 65 and 79 to see whether metformin can slow the development of multiple age-related conditions at once.9Signal Transduction and Targeted Therapy. Metformin: decelerates biomarkers of aging clocks More than 20 clinical trials are now registered to study metformin as a potential geroprotective agent. The results of these trials could reshape how the drug is thought about entirely, although it is worth noting that the enthusiasm currently outpaces the completed evidence.

Metformin in the Water Supply

With hundreds of millions of metformin prescriptions filled worldwide every year, a less glamorous consequence has emerged: the drug is showing up in rivers, lakes, and even drinking water. Metformin passes through the human body largely intact and enters wastewater. At treatment plants, bacteria partially convert it into a breakdown product called guanylurea, but neither compound is fully removed.

Monitoring in German waterways found extremely high concentrations of metformin in sewage influent, averaging around 112 micrograms per liter, and guanylurea in effluent at around 44 micrograms per liter.10PubMed. Occurrence of the antidiabetic drug Metformin and its ultimate transformation product Guanylurea in several compartments of the aquatic cycle In rivers downstream of treatment plants, metformin typically settles at concentrations around 1 microgram per liter while guanylurea can reach several micrograms per liter, with especially polluted stretches seeing averages above 3 and 20 micrograms per liter respectively.11PubMed. Occurrence and fate of the antidiabetic drug metformin and its metabolite guanylurea in the environment and during drinking water treatment These concentrations depend heavily on how much wastewater a given waterway receives.

Sampling across Ontario and Quebec in Canada found metformin and guanylurea above detectable levels in roughly half of all surface water samples. In sediment, metformin was detected at even higher rates. At many of these sites, guanylurea exceeded concentrations considered potentially harmful to aquatic life, with specific concern about effects on fish.12PubMed. Environmental Concentrations of the Type 2 Diabetes Medication Metformin and Its Transformation Product Guanylurea in Surface Water and Sediment in Ontario and Quebec, Canada One German study went further, suggesting that because neither metformin nor guanylurea breaks down naturally in the environment, both compounds could be distributed over a large fraction of the world’s drinking water sources and oceans, potentially re-entering the food chain.10PubMed. Occurrence of the antidiabetic drug Metformin and its ultimate transformation product Guanylurea in several compartments of the aquatic cycle

This is still a developing area of environmental science. The concentrations detected in drinking water are orders of magnitude below therapeutic doses, so there is no evidence of harm to humans from trace metformin in tap water. The ecological concern centers on aquatic organisms, which live in these concentrations continuously and may be more sensitive. It is an unusual case of a drug’s sheer popularity creating a new environmental problem.

Why Goat’s Rue Deserves More Credit Than It Gets

Metformin’s origin story tends to get compressed into a single line in textbook introductions and then never revisited. But the history is genuinely remarkable when you step back and look at it. Medieval herbalists correctly identified that a particular weedy legume helped with the symptoms of a disease they did not fully understand. Centuries later, chemists isolated the active compound class, found it was too toxic in its natural form, spent decades modifying it, had the modified version overshadowed by insulin for a generation, and then finally saw it come back and become the most widely prescribed diabetes drug in the world. That arc, from folk remedy to abandoned lead to global first-line therapy, took roughly seven hundred years from the earliest recorded herbal use to FDA approval.

Goat’s rue is also a reminder that “natural” and “safe” are not synonyms. The same plant that inspired one of the safest diabetes drugs available can kill sheep and cattle if they eat too much of it. The chemistry mattered. Turning galegine’s rough glucose-lowering ability into metformin’s precise, tolerable action required human ingenuity, not just plant harvesting. Researchers are still studying how to improve galegine production in Galega officinalis using modern biotechnology techniques like hairy root cultures and elicitation, which suggests the plant has not given up all its pharmaceutical secrets yet.2PubMed Central. Improving galegine production in transformed hairy roots of Galega officinalis L. via elicitation Whether any new compounds emerge from that line of research remains to be seen, but the original debt to goat’s rue is clear and worth remembering every time someone fills a metformin prescription.

Gabriela Robbins

Gabriela Robbins earned her PharmD at Purdue University and has practiced as a community pharmacist for nine years. Her practice centers on nonprescription medicines and the supplements patients take alongside their prescriptions. She is also an immunizing pharmacist.