There are 5 gallons in 40 pints. To convert pints to gallons, simply divide the number of pints by 8. Alternatively, multiply the number of gallons by 8 to convert to pints. Read more