Start With Project Volume
Multiply length by width by thickness after converting all measurements to the same unit.
Divide by Bag Yield
Divide cubic feet required by the yield printed on the bag and round up to a whole bag.
Add an Allowance
Uneven surfaces, spillage, and measurement variation can increase the amount required.