There is more than one answer to that question. How long you need to stay in the hospital depends on what type of surgery you have.
If you had open surgery, you may have to stay in the hospital for a few days. It will take about 7 weeks before your body fully heal.
But if you had laparoscopy, it takes much shorter time for your body to heal. In fact, most patients are able to leave the hospital the same day they have the surgery. It takes about 2 weeks for complete recovery.
Keyword: gallstone surgery recovery