A cylinder is two circles at the ends with a rectangular section folded around the centre.

Therefore surface area is given by where r is the radius and h is the height of the cylinder. That can then be rearranged depending on whether you want to make r the subject or h the subject: