Divide the volume by the surface re: diameter, deduct the surface of the ring of the tank material first and add the height of the stand, pipes and if needed roof.
Don't forget to include in your calculations the wall thickness, any internal and external structural support members of the tank. Likely the bottom of your tank will not be resting on a flat supporting member so you may have to take into account base plate deformation due to mechanical loading from the mass of the fluid in the tank. If that fluid is some cryogenic or other highly reactive fluid then things can get really complicated.
__________________
"Don't disturb my circles." translation of Archimedes last words
By using the formula for the volume of a cylinder, which can be found in most Engineering textbooks, if absent from the inside of the cranium.
__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
This question is not so elementary as it appears at first glance, so let's not get too snarky too soon.
Let's assume the poster is designing a tank and needs to determine the height based on certain criteria. Capacity and OD are common fixed parameters while others are variable.
However, we need more information. We need to know wall thickness, head style top and bottom, and any internal structure or features. Plus on API and ASME tank designs, we need to allow for a freeboard of 10-15%. Also, will the tank be vertical or horizontal? This will effect the selection of top and bottom head types.