Multiply length × width × depth in inches to get the volume in cubic inches, then divide by 231 for US gallons. A 48 × 24 in table top poured 1/8 inch deep is 48 × 24 × 0.125 = 144 cubic inches, about 0.62 gallons, before adding extra for drips and the edges.
The formula
Cubic inches = length × width × depth, then gallons = cubic inches ÷ 231 and fluid ounces = gallons × 128
A US gallon is 231 cubic inches and 128 US fluid ounces. Write the depth as a decimal: 1/8 inch is 0.125, 1/4 is 0.25.
48 × 24 × 0.125 = 144 cubic inches, plus 10% extra makes 158 cubic inches. That's 87.8 fl oz of mixed epoxy. At a 1:1 mix, buy at least 43.9 fl oz each of resin and hardener.
Round tops
For a circle, the area is π × radius². A 36 in round top has a radius of 18 in.
π × 18² × 0.25 = 254 cubic inches, plus 10% is 280 cubic inches, or 155.1 fl oz.
Check the mix ratio and pour depth
Epoxy comes as two parts mixed by a set ratio, by volume or by weight. A 1:1 product splits the total evenly; a 2:1 product needs two thirds resin and one third hardener. Many products also list a maximum depth for each pour, so a deep pour may need several layers. Check the label for both.
Work it out
Enter the size and depth in the epoxy calculator. It adds the extra and gives fluid ounces, gallons and liters.