Most case manufacturers specify the maximum CPU cooler height in their specifications. Please refer to these specifications to make sure that the cooler will fit in the respective case. If no specifications are available, please contact the case manufacturer.
Alternatively: If you already own your case, you can also measure the distance between your motherboard tray and the side panel. If this distance is greater than the height of the cooler + 15 mm (motherboard stand-offs + motherboard + CPU), the size of your case should also be sufficient.