You can pick RAM that fits the motherboard and a cooler that fits the case on paper, then find that the front fan forces the side panel open. On the NH-D15 G2 the fan sits over the RAM. Check the extra fan height against the case limit before you order.
Quick Answer
Noctua NH-D15 G2 RAM clearance is 32mm in the default dual-fan setup. The cooler is 168mm tall. Add the extra RAM height above 32mm to estimate how high the lifted fan will sit. For 35mm RAM the result is 171mm, so a 170mm case specification is too low.
📏 Compare the three numbers together
Look up the height of the exact memory kit, the maximum CPU cooler height for the exact case and the default height of the cooler. Start from 168mm for this G2. With the front fan at its default height Noctua allows 32mm memory beneath it. For 35mm memory, the front fan has to rise 3mm. Compare the resulting 171mm to the published case specification. The same sum gives 175mm for a 39mm kit. If the answers are very close, check the cooler maker's case compatibility list and the precise case variant before ordering.

🧮 Try the change that costs least
If you already own the case and want two fans, check shorter memory in DDR5 before ordering a different case. Compare the height including any heat spreader or light bar. If you already own the tall memory, consider a cooler with a different fan arrangement. Check the socket, cooler dimensions and memory slots for the proposed combination. If you own all the parts and are doing a dry fit, take your time closing the panel. Stop if the panel touches the fan or would need force. A small fit problem is easier to fix before you route cables around the cooler.
🌀 Check what removing the front fan changes
Noctua explains that you can run the design with the centre fan, which can free memory space where the front fan would sit. On the G2 the heatsink itself is 168mm tall, so this does not let you use a case whose clearance is below 168mm. If one fan fits, test temperatures and noise on your own workload before deciding it is sufficient. If the case has the harder limit, compare other CPU Coolers by height and socket rather than transferring the number from a similarly named older model.
Frequently Asked Questions
What RAM height fits the default two-fan setup?
Noctua specifies 32mm of RAM clearance with the front fan at its default position.
How tall is it with 35mm RAM?
Lifting the front fan by 3mm gives 171mm total height.
Will a 170mm case fit that setup?
A 171mm configuration exceeds a 170mm spec. Check the manufacturer case compatibility list before choosing another setup.
Can I remove the front fan?
Yes. That can free RAM clearance, though the G2 heatsink itself remains 168mm tall.
What if I already own tall memory?
Check the one-fan arrangement or a different cooler before replacing memory or forcing a panel.
Which case measurement matters?
Use the manufacturer's maximum CPU cooler clearance for the exact case variant.
Add the RAM height to the case check
Calculate the combined height before buying RAM, a case or a cooler that will not fit together.