You need Length × Width × Depth ÷ 27 cubic yards of gravel. Length and width are measured in feet, depth is converted from inches to feet by dividing by 12, and the final division by 27 turns cubic feet into cubic yards because a cubic yard contains 27 cubic feet.
The diagram above measures a rectangle 20 feet long and 10 feet wide, filled with a 3-inch gravel layer sitting on compacted subgrade. Work it through: 20 × 10 gives 200 square feet of surface. Three inches converts to 0.25 feet, and 200 × 0.25 gives 50 cubic feet of material. Dividing 50 by 27 produces 1.85 cubic yards. At the standard density of 105 pounds per cubic foot, those 50 cubic feet weigh 5,250 pounds, which is 2.63 US tons.
Round areas follow the same logic with a different area step, because the shape of the footprint is the only thing that changes. Multiply pi by the radius squared, where the radius is half the diameter. A 12-foot circular fire-pit surround has a 6-foot radius, so its area is 3.1416 × 36, or 113.1 square feet. At the same 3-inch depth that comes to 28.3 cubic feet, which is 1.05 cubic yards, roughly 2,969 pounds, or 1.48 tons of standard gravel. Triangular corner beds work the same way again using half the base times the perpendicular height.
Add a compaction buffer of 5 to 10 percent to whatever the formula returns. This extra amount is also called overage, or a wastage allowance, and it covers settling, uneven excavation and small measurement errors. Loose aggregate arrives full of air voids, and rolling, tamping or simply driving over it drives those voids out, which drops the finished layer below the depth you measured for. Base materials that contain fines (crusher run, Class 5 and #411) settle the most, so give those the full 10 percent. Clean, single-sized stone such as #57 barely moves and is comfortable at 5 percent.