Disclaimer: I am have a fine arts background and math isn’t my forté. That said this technique has served me well for simple, dynamic pie charts.
This example would render a pie chart with a diameter of 80 pixels. This technique only works well when working with a single percentage value. For more roubust pie charts have a look at the further reading section below.