CNN  — 

Michael Phelps says the coronavirus pandemic has put him in a “scary situation” with his mental health.

The 23-time Olympic gold medalist, who retired as the most decorated Olympian of all time after Rio 2016, has spoken frankly about his struggle with depression away from the pool, acknowledging he has contemplated suicide in the past.

Without a fixed routine during the outbreak, he says that he’s endured one of the toughest stretches of his life.

“It has been one of those months. Nonstop, my mood jumping up and down and all around,” Phelps said in an article for ESPN.

Visit CNN.com/sport for more news, videos and features

Phelps receives his gold medal following the men's 4 x 100m medley relay at the Rio Olympics in 2016.

“The pandemic has been one of the scariest times I’ve been through.

“I’m thankful that my family and I are safe and healthy. I’m grateful we don’t have to worry about paying bills or putting food on the table, like so many other folks right now. But still, I’m struggling.”

Phelps has become an advocate for openly discussing mental health after his retirement.

He has described how therapy and support from his wife, Nicole, has helped him manage his depressive episodes.

READ: Usain Bolt becomes a father for the first time

- Source: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/191024205430-michael-phelps-reflects-swimming-career-riddell-worldsport-vpx-00000000.jpg?q=x_2,y_0,h_1078,w_1915,c_crop/h_540,w_960" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/191024205430-michael-phelps-reflects-swimming-career-riddell-worldsport-vpx-00000000.jpg?q=x_2,y_0,h_1078,w_1915,c_crop/h_540,w_960" } }" data-vr-video="false" data-show-html="" data-byline-html="
" data-timestamp-html="
Published 8:09 AM EDT, Tue May 19, 2020
" data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-10-25T01:06:58Z" data-video-section="sport" data-canonical-url="https://www.cnn.com/videos/sports/2019/10/25/michael-phelps-reflects-swimming-career-riddell-worldsport-vpx.cnn" data-branding-key="" data-video-slug="michael phelps reflects swimming career riddell worldsport vpx" data-first-publish-slug="michael phelps reflects swimming career riddell worldsport vpx" data-video-tags="michael phelps,olympics,sports events,sports figures" data-details="">
michael phelps reflects swimming career riddell worldsport vpx_00000000
Michael Phelps says this Olympic moment gives him chills
00:42 - Source: CNN

In recent weeks, he says that he has relied on escaping to the gym for 90 minutes in the morning each day.

“If I miss a day, it’s a disaster,” said Phelps.

“Then I get into a negative pattern of thinking in my own head. And when that happens, I’m the only one who can stop it. And it typically doesn’t stop very fast.

“I’ll just drag it out, almost to punish myself in a way. That’s what I do if I make a mistake or if I upset somebody, then I think it’s always my fault and just take it all out on myself.

“When that happens day after day, you can put yourself in a scary situation pretty quickly. And that’s been this quarantine a lot of the time.”

READ: President Trump praises live golf event and says sport returning is good for country’s ‘psyche’

- Source: CNN " data-fave-thumbnails="{"big": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/180816125542-michael-phelps-tease-3.jpg?q=x_3,y_131,h_1416,w_2517,c_crop/h_540,w_960" }, "small": { "uri": "https://media.cnn.com/api/v1/images/stellar/prod/180816125542-michael-phelps-tease-3.jpg?q=x_3,y_131,h_1416,w_2517,c_crop/h_540,w_960" } }" data-vr-video="false" data-show-html="" data-byline-html="
" data-timestamp-html="
Published 8:09 AM EDT, Tue May 19, 2020
" data-check-event-based-preview="" data-is-vertical-video-embed="false" data-network-id="" data-publish-date="2019-10-25T13:58:24Z" data-video-section="sport" data-canonical-url="https://www.cnn.com/videos/sports/2019/10/25/michael-phelps-on-water-conservation-olympics-swimming-spt-intl.cnn" data-branding-key="" data-video-slug="michael phelps on water conservation olympics swimming spt intl" data-first-publish-slug="michael phelps on water conservation olympics swimming spt intl" data-video-tags="business and industry sectors,business, economy and trade,energy and utilities,michael phelps,olympics,sports events,sports figures,summer olympics,utilities industry,water and wastewater management" data-details="">
Silver medallist USA's Michael Phelps waves during the medal ceremony of the Men's 100m Butterfly Final during the swimming event at the Rio 2016 Olympic Games at the Olympic Aquatics Stadium in Rio de Janeiro on August 12, 2016.   / AFP PHOTO / CHRISTOPHE SIMON        (Photo credit should read CHRISTOPHE SIMON/AFP/Getty Images)
Michael Phelps' new water mission
05:25 - Source: CNN

Phelps is a spokesman for online therapy company TalkSpace and earlier this month donated 500 months of free therapy to medical workers on the front line of the Covid-19 response.

He also launched the Michael Phelps Foundation that promotes healthier lifestyles for children through swimming.

“I want to help others. And I want to hold myself accountable,” said Phelps.

“There are a ton of people fighting the exact same thing. It doesn’t matter what you went through, where you’ve come from or what you want to be.

“Nothing can hold you back. You just need to learn the tricks that work for you and then stick with them, believe in them, to keep yourself from getting into a negative cycle.”