The 78-year-old was at a campaign event on Tuesday when he experienced chest discomfort and was taken to a hospital where it was determined that he had suffered a heart attack.
Doctors inserted two stents to open up a blocked artery in his heart, according to a statement from the Las Vegas doctors, who said the rest of his arteries were normal.
The statements from Sanders and his doctors do not indicate whether his heart suffered any permanent damage, or the extent of it.
The campaign also released a statement from Sanders where he thanked the doctors, nurses and hospital staff.
"After two and a half days in the hospital, I feel great, and after taking a short time off, I look forward to getting back to work," he said.
Soon after, he posted a video on Twitter showing him standing at a Las Vegas park with his wife.
"I just got out of the hospital a few hours ago and I'm feeling so much better," Sanders said. "See you soon on the campaign trail."
Sanders's campaign said he would participate in the fourth Democratic debate on October 15.
More about: Bernie-Sanders