A pill is basically a cube and a cylinder.
To calculate this shape you need to measure the cube-part and the circle parts.
If the circle-part is circular (the dimensions are the same around the whole circle), the Y-part is the Diameter.
If the circle-part is oval or one side is sharper or flatter than the other one, you have an oval circle. You need to measure the radius for each and add these to the r2 and/or r3 measurements. The Y-part will always be the other measurement in the oval circle calculation.
Measure the cube and the cylinder. Add these two, and you have your volume.
= Diameter of (r1)
This field is required
Volume cylinder:
Volume cube: