Hollow cylinder volume calculator (from diameters & height)

[to-calculator-info][/to-calculator-info][calculator] [calculator-input name=“h” label=“height” unit=“m”][/calculator-input] [calculator-input name=“od” label=“outer diameter” unit=“m”][/calculator-input] [calculator-input name=“id” label=“inner diameter” unit=“m”][/calculator-input]

[calculator-expression name=“vm3” formula="(PI*(od/2)*(od/2)*h)-(PI*(id/2)*(id/2)*h)" unit=“m³”] [calculator-expression name=“vl” formula=“vm3*1000” unit=“l”]

[calculator-output name=“volume” unit=“m³”]A hollow cylinder with an outer diameter of <%= format(od, “m”) %>, an inner diameter of <%= format(id, “m”) %> and a height of <%= format(h, “m”) %> has a volume of <%= format(vl, “l”) %> [/calculator-output]

[/calculator]

$$V = \pi\cdot(\frac{OD}{2})²\cdot h\ -\ \pi\cdot(\frac{ID}{2})²\cdot h$$