Formula and method
Volume = length × width × (shallow depth + deep depth)/2. Multiply cubic meters by 1,000 for liters.
Worked example
An 8 m by 4 m pool sloping evenly from 1 m to 2 m deep contains approximately 48 m³ or 48,000 L. US gallons use 1 gal = 231 in³ = 3.785411784 L exactly (NIST Handbook 44, Appendix C), so 48,000 L is about 12,680 US gal.