For gravel and topsoil, measure the length and width of the area, then choose a depth. Depth makes a big difference to the final amount.
For gravel, the calculator can estimate tonnes using a typical bulk density. For topsoil, cubic metres are usually the clearest starting point.