How do you calculate the gallons of water in a swimming pool?

length(M) x width(M) x average depth(M)

you will get pool volume in cubic meter.

convert it in to gallons or any other unit