How long you stay in the hospital after open-heart surgery depends on what type of surgery you had and your needs. It may be as short as 3 to 4 days. If you have complications, you may stay in the hospital several weeks or longer.