Most often than not, gas pain doesn’t last more than 45 minutes to an hour. In rare instances, gas pain may last up to 48 hours in some individuals. It is best to consult a doctor in such cases to rule out the possibility of a heart attack.