Dirt Therapy: How Gardening Lifts Your Mood, Trains Your Immune System, and May Help You Live Longer
By Mark G. Agresti, MD — Board-Certified Integrative Psychiatrist, Palm Beach, Florida
Most people who garden will tell you the same thing: they feel better after a morning with their hands in the soil. For a long time that was filed under "nice hobby." It turns out there is real biology behind it. Soil is not just dirt. It is one of the richest microbial ecosystems on Earth, and when you dig, plant, weed and harvest, you are exposing your skin, your lungs and your gut to a living community of bacteria that your immune system evolved alongside for hundreds of thousands of years.
As an integrative psychiatrist in Palm Beach, I spend a lot of time talking with patients about the things that support mental health outside of a prescription: sleep, nutrition, sunlight, movement, connection and purpose. Gardening is one of the rare activities that delivers almost all of them at once. Here is what the research actually shows about gardening, mood, immunity and longevity, and how to put it to work in your own life, even if all you have is a condo balcony in West Palm Beach.
Meet "Tyler": Burned Out, Indoors, and Running on Screens
Tyler is a composite patient, a blend of many young adults I see in South Florida. He is 27, works remotely in tech, and lives in a high-rise apartment. His day goes something like this: wake up, check Slack before his eyes are fully open, iced coffee, eight hours at a monitor, DoorDash dinner, two hours of scrolling, poor sleep, repeat. He gets outside mainly to walk from the parking garage to the elevator. He describes himself as "not depressed exactly, just flat," with a constant low hum of anxiety and a cold that seems to come back every few months.
We adjusted a few things clinically, but one of the simplest assignments was this: buy three large pots, a bag of quality organic potting mix, and some herbs and tomatoes. Get your hands in the soil every morning before you open the laptop. No gloves for the potting soil unless you have cuts. Ten minutes minimum.
Six weeks later, Tyler had basil, a stubborn but productive cherry tomato plant, and a new morning routine that had nothing to do with a screen. He was getting sunlight before 9 a.m., sleeping better, and reported that the "flat" feeling had started to lift. Gardening did not replace treatment. It became part of it. And the science suggests that was not a coincidence.
The "Old Friends" Idea: Why Your Immune System Needs Dirt
You have probably heard of the hygiene hypothesis, the idea that overly clean modern environments contribute to rising rates of allergies, asthma and autoimmune disease. Immunologist Graham Rook at University College London refined that concept into what is now called the "old friends" hypothesis. The problem is not too little infection. It is too little contact with the harmless microbes in soil, plants, water and animals that humans evolved with. These organisms help educate the immune system, specifically its regulatory branch, which keeps inflammation in check and teaches the body what to ignore.
Modern life cut us off from those old friends. We live and work indoors, eat processed food, and rarely touch living soil. The result, according to this line of research, is an immune system that is more reactive and more prone to chronic, low-grade inflammation. That matters for mental health, because chronic inflammation is increasingly linked to depression, anxiety and stress-related disorders.
Research Spotlight: A Forest Floor in the Playground
In a Finnish trial published in Science Advances in 2020, researchers replaced the gravel yards at four urban daycare centers with forest floor, sod and planter boxes where children grew plants. They followed 75 children ages 3 to 5. Within just 28 days, the children in the greened yards had more diverse skin bacteria and gut microbiota that looked similar to that of children who visited the forest every day. Their blood showed higher levels of regulatory T cells and the anti-inflammatory signaling molecule TGF-β1, both markers of a better-regulated immune system. Children in standard gravel yards, meanwhile, showed a decline in microbial diversity over the same period.
That study is important because it was an intervention, not just an observation. Change the environment, add soil and plants, and the immune system measurably shifts in about a month. Adults are not toddlers rolling around in the dirt, but the same principle applies when you garden: regular contact with diverse soil microbes is one of the most direct ways to reconnect with those old friends.
Mycobacterium vaccae: The "Antidepressant" Microbe in Soil
The most fascinating piece of this story is a single soil bacterium called Mycobacterium vaccae. It is harmless, common in soil, and has been studied for decades for its immune-regulating properties.
In 2007, neuroscientist Christopher Lowry, now at the University of Colorado Boulder, showed that when mice were exposed to heat-killed M. vaccae, it activated a group of serotonin-producing neurons in the brain, the same system targeted by SSRIs, and the mice behaved in ways resembling the effects of antidepressants. In a later study published in the Proceedings of the National Academy of Sciences in 2016, Lowry and colleagues found that immunizing mice with M. vaccae before a stressful experience made them more stress-resilient. The mice showed a more proactive coping style, less anxiety-like behavior and protection against stress-induced colitis. Follow-up work identified an anti-inflammatory fat molecule from the bacterium that appears to calm inflammation in the brain.
A Psychiatrist's Honest Caveat
The M. vaccae findings come primarily from animal research using prepared, heat-killed bacteria, not from people digging in their backyard. We do not yet have human trials proving that gardening delivers an antidepressant dose of this microbe. What the research does give us is a plausible mechanism, a biological "why," that fits with the strong human data showing gardeners feel better. I find that combination compelling, but it is worth being clear about which parts are proven in people and which are still being worked out.
The broader takeaway is that the gut-brain-immune axis is real. Microbes influence immune signaling, immune signaling influences inflammation, and inflammation influences mood. Gardening is one of the few everyday activities that touches every link in that chain, and it adds fresh produce, which feeds a healthier gut microbiome, on top.
The Statistics: Gardeners Are Less Stressed, Less Depressed and Less Anxious
This is where the human evidence is strongest. Here are the studies I find most persuasive.
The big picture meta-analysis. In 2017, researchers Soga, Gaston and Yamaura pooled 22 studies on gardening and health in Preventive Medicine Reports. They found a significant positive effect of gardening across a wide range of outcomes, including reductions in depression, anxiety and body mass index, and increases in life satisfaction, quality of life and sense of community. Even after adjusting for publication bias, the benefit held up. Their conclusion was that a regular dose of gardening can improve public health.
The gold-standard trial. In 2023, the University of Colorado Boulder published the first randomized controlled trial of community gardening in The Lancet Planetary Health. They took 291 adults, average age 41, who had never gardened, and randomly assigned half to receive a garden plot. The gardeners ate about 1.4 grams more fiber per day, got nearly 6 more minutes of moderate-to-vigorous activity per day, and showed greater reductions in perceived stress and anxiety than the control group. Notably, the people who started out the most stressed and anxious improved the most.
The cortisol experiment. A Dutch study in the Journal of Health Psychology gave 30 gardeners a stressful mental task, then randomly assigned them to 30 minutes of either gardening or reading indoors. Both groups saw cortisol, the main stress hormone, drop afterward, but the drop was significantly greater in the gardening group. Positive mood fully recovered after gardening, while it actually got worse in the reading group.
The dose-response data. A 2021 survey of more than 6,000 people, led by the Royal Horticultural Society with the University of Sheffield, found that people who gardened every day had wellbeing scores 6.6% higher and stress levels 4.2% lower than people who did not garden at all. Gardening two to three times a week was enough to capture much of that benefit. Among respondents with health problems, many reported that gardening eased episodes of depression, raised their energy and reduced stress.
A Florida study in healthy adults. Closer to home, a University of Florida pilot trial published in PLOS ONE in 2022 enrolled 32 healthy women ages 26 to 49 who had never gardened. Those who attended twice-weekly gardening sessions for a month saw reductions in stress, anxiety and depression. That matters because it shows the benefits are not limited to people who are already struggling. Gardening can boost mood in healthy young and middle-aged adults too.
Gardening by the Numbers
22 studies in one meta-analysis linked gardening to less depression and anxiety
6.6% higher wellbeing and 4.2% lower stress in daily gardeners
30 minutes of gardening lowered cortisol more than reading
36% lower dementia risk in older adults who gardened daily
30% lower risk of death from any cause among the most active older adults in everyday activities like gardening
Do Gardeners Live Longer? What the Longevity Research Shows
The longevity data are observational, meaning they show strong associations rather than proof of cause, but they are consistent and come from large, long-running studies.
A Swedish study from the Karolinska University Hospital, published in the British Journal of Sports Medicine, followed nearly 4,000 sixty-year-olds for about 12 years. Those with the most active daily lives, including gardening, home repair and yard work, had a 27% lower risk of heart attack or stroke and a 30% lower risk of death from any cause compared with the least active, regardless of whether they also did formal exercise. They also had smaller waists, better cholesterol and lower triglycerides. For people who will never set foot in a gym, that is genuinely good news.
On the brain side, the Dubbo Study of the Elderly in Australia tracked about 2,800 adults over 60 for more than a decade and a half. Daily gardening was associated with a 36% lower risk of developing dementia, one of the strongest protective lifestyle factors in the study. The researchers suggested that gardening combines physical activity with mental engagement, planning, problem-solving and learning, all of which support cognitive reserve.
Add to that the broader research on green space. Long-term studies link living near greenery with lower mortality and better mental health, and the world's longest-lived communities tend to share a habit of daily, low-intensity physical activity outdoors, which very often means tending a garden well into old age.
Why Gardening Works: Eight Benefits in One Activity
What makes gardening unusual is that it bundles together nearly every evidence-based lifestyle intervention I recommend in an integrative mental health practice.
1. Microbial exposure. Contact with diverse soil bacteria supports a well-regulated immune system and a more diverse microbiome, which may lower chronic inflammation.
2. Morning sunlight and vitamin D. Light exposure early in the day anchors your circadian rhythm, improving sleep and energy, while sun on the skin helps your body make vitamin D, which plays a role in both immune function and mood.
3. "Stealth" exercise. Digging, lifting, squatting, carrying and raking count as moderate-intensity activity. Gardening builds grip strength, flexibility and balance, and it rarely feels like a workout.
4. Lower cortisol. Time in a natural setting shifts the nervous system out of fight-or-flight and into a calmer, restorative state.
5. Mindfulness without trying. Pulling weeds or pruning a plant pulls your attention into the present. It is one of the easiest forms of mindfulness for people who find meditation frustrating, including many with ADHD and anxiety.
6. Better nutrition. People who grow food eat more vegetables and more fiber, and fresh produce feeds the beneficial bacteria in your gut that help regulate mood.
7. Purpose and a sense of accomplishment. Depression often strips away the feeling that your effort produces results. A garden gives you visible, living proof that it does. Watching something grow because you cared for it is a powerful antidote to helplessness.
8. Social connection. Community gardens, plant swaps and simply chatting with neighbors over a hedge reduce isolation, which is one of the biggest drivers of depression in young adults today.
How to Start Gardening in South Florida (Even Without a Yard)
One advantage of living in Palm Beach County is that we can garden almost year-round. Our main growing season actually runs fall through spring, which makes right now, in October, a perfect time to start. A few practical tips:
Start small. Three containers on a balcony or patio are plenty. Herbs like basil, mint, rosemary and cilantro, cherry tomatoes, peppers and leafy greens are forgiving for beginners.
Go early. Garden in the morning to get the circadian benefits of daylight and avoid the midday heat, especially from May through September.
Use living soil. Our native soil is sandy and low in organic matter. Add compost or a quality organic mix, which is also richer in the beneficial microbes you want contact with.
Touch the soil. Skin contact is part of the point. Skip gloves for potting soil and compost when your hands are free of cuts, then wash afterward.
Aim for consistency over intensity. The research suggests two to three sessions a week captures much of the benefit, and daily is even better. Ten minutes counts.
Find your people. Community gardens across West Palm Beach, Lake Worth Beach and Delray Beach are a great way to combine nature, movement and social connection.
Safety Notes
Keep your tetanus vaccine current, wear gloves when you have open cuts or are handling manure or bagged soil with added chemicals, and wash your hands before eating. Use sun protection after your first 15 to 20 minutes outdoors, stay hydrated in the Florida heat, and lift with your legs. If you are immunocompromised, talk with your physician about appropriate precautions before handling soil and compost.
Gardening Is Medicine, But Not the Only Medicine
I want to be clear: gardening is a powerful complement to mental health treatment, not a replacement for it. If you are dealing with persistent depression, anxiety that interferes with your life, panic attacks, trauma or thoughts of self-harm, you deserve a full evaluation and a real treatment plan. For many of my patients, the best results come from combining appropriate medication or psychotherapy with lifestyle foundations like sleep, nutrition, sunlight, exercise and time in nature.
That is the heart of integrative psychiatry. We use the best of conventional medicine, and we also prescribe the things that humans have always needed and modern life has stripped away. Sometimes that prescription is a supplement or a medication adjustment. Sometimes it is a bag of potting soil and three tomato plants.
If you are a young adult in Palm Beach or anywhere in Florida who feels flat, anxious, burned out or stuck, and you want a psychiatrist who looks at the whole picture, I would be glad to help.
Ready to Feel Like Yourself Again?
Dr. Mark Agresti offers concierge integrative psychiatry that combines evidence-based medication management and psychotherapy with nutrition, lifestyle and complementary approaches. In-person visits in Palm Beach and telemedicine throughout Florida.
Mark G. Agresti MD LLC
44 Cocoanut Row, Suite M202, Palm Beach, FL 33480
Phone: (561) 760-4107
Email: office@drmarkagresti.com
References
Soga M, Gaston KJ, Yamaura Y. Gardening is beneficial for health: a meta-analysis. Preventive Medicine Reports. 2017;5:92–99.
Litt JS, et al. Effects of a community gardening intervention on diet, physical activity, and anthropometry outcomes in the USA (CAPS): an observer-blind, randomised controlled trial. The Lancet Planetary Health. 2023;7(1):e23–e32.
Van den Berg AE, Custers MHG. Gardening promotes neuroendocrine and affective restoration from stress. Journal of Health Psychology. 2011;16(1):3–11.
Chalmin-Pui LS, Griffiths A, Roe J, Heaton T, Cameron R. Why garden? Attitudes and the perceived health benefits of home gardening. Cities. 2021;112:103118.
Odeh R, Diehl ERM, Nixon SJ, Tisher CC, Klempner D, Sonke JK, Colquhoun TA, Li Q, Espinosa M, Perez D, Mason A, Guy CL. A pilot randomized controlled trial of group-based indoor gardening and art activities demonstrates therapeutic benefits to healthy women. PLOS ONE. 2022.
Roslund MI, et al. Biodiversity intervention enhances immune regulation and health-associated commensal microbiota among daycare children. Science Advances. 2020;6(42):eaba2578.
Lowry CA, et al. Identification of an immune-responsive mesolimbocortical serotonergic system: potential role in regulation of emotional behavior. Neuroscience. 2007;146(2):756–772.
Reber SO, et al. Immunization with a heat-killed preparation of the environmental bacterium Mycobacterium vaccae promotes stress resilience in mice. PNAS. 2016;113(22):E3130–E3139.
Ekblom-Bak E, Ekblom B, Vikström M, de Faire U, Hellénius ML. The importance of non-exercise physical activity for cardiovascular health and longevity. British Journal of Sports Medicine. 2014;48(3):233–238.
Simons LA, Simons J, McCallum J, Friedlander Y. Lifestyle factors and risk of dementia: Dubbo Study of the elderly. Medical Journal of Australia. 2006;184(2):68–70.
Rook GAW. Regulation of the immune system by biodiversity from the natural environment: an ecosystem service essential to health. PNAS. 2013;110(46):18360–18367.