We present a new optimization concept for 3D multiphoton fluorescence microscopy by finding the optimal excitation beam giving rise to the smallest possible light-emitting volume or the highest possible signal to noise ratio (SNR).