Width and depth are the cross-section. Length is how far the footing runs. Because the volume is the product of the three, swapping two numbers does not change the yards, but it does change the drawing, so put the long run in length and the cross-section in width and depth. Measure inside the forms. A trench that is wider than the form, because the soil sloughed, is a larger pour if you are filling the trench rather than a form.
The example is 40 ft long, 16 inches wide, and 8 inches deep, entered as 1 ft 4 in by 8 in. Net volume is 35.56 cubic feet, 1.32 cubic yards. With 10 percent waste that is 39.11 cubic feet and 1.45 cubic yards, about 66 bags of 80 lb mix. That bag count is a useful check and a poor way to fill a 40 foot trench. The ready-mix line, short-load fee included, is the comparison to edit with your plant’s price.
People ask for a standard footing size. There isn’t one this site will pretend is code. Frost depth, soil, the wall above, and seismic category are local. A residential trench footing is often wider than the wall it carries, and the depth below grade is whatever the adopted code and the soils report require. Do not take 16 by 8 inches as permission to dig. Take it as a worked volume so you can see the arithmetic.
A continuous footing is the wrong shape for a single pier pad. Use the column calculator for a square or round pier, and the post-hole calculator for an augered cylinder. A stepped footing on a slope should be broken into level runs. Add the runs. Isolated pad footings under posts are rectangles of their own: length and width of the pad, depth of the pad, count them by repeating the calculation or by using count on a column if the pads match.
Longitudinal bars and dowels displace a negligible volume for an order of this size, so they are not subtracted. A keyway does not matter either. What does matter is a footing that is deeper at one end because the trench was dug by eye. Measure the deep end and the shallow end, average them only if the change is a straight slope, and if you are unsure, use the deeper figure and a waste percentage you can defend.
The stem wall that sits on the footing is not included. Calculate that with the wall calculator using the pour height and the wall thickness, then add the yards to the footing yards. A slab turned down at the edge is the same idea: slab in the field, footing at the perimeter, no double-counting of the overlap. If a supplier has already given you a single yardage, switch to volume to bags and set waste to zero when their number already includes it.