Systems and methods of optimal pulse compression are described. A method of determining an optimal pulse takes as an input a function of the impulse response of a transducer and produces a pulse optimized for transmission through that transducer. Images then produced with that transducer will have both superior range and spatial resolution.