This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/446/. Also, please do not modify any references to the original work (if any) contained in this content.
Our user asked to make a cylinder segment volume calculator. I imagine the segment like this - see picture
Accordingly, we set four parameters and obtain the volume segment. If the inner radius is set 0 and the number of degrees is 360, we will calculate the volume of the cylinder.
The formula is simple - the area difference of the segments obtained by the first and the second radius, multiplied by the height.