The invention discloses a PDN capacitor optimizing method based on lossless resonant cavity power supply horizon plane modeling. The method comprises the steps of 1) designing related parameters input in a power supply distribution network; 2) calculating an initial power supply distribution network impedance value according to the result of the step 1); 3) calculating number of decoupling capacitors according to the parameter designed in the step 1); 4) calculating an actual power supply distribution network impedance value Z according to the results of the steps 2) and 3); 5) determining a relation between a discrete frequency point f<n> and the maximum target frequency f<max>, if the f<n> is less than the f<max>, executing a step 6); and if the f<n>is equal to the f<max>, outputting the result of the step 3); and 6) comparing the Z with the target impendence Z<t> designed in the step 1), if Z is greater than Z<t>, returning to the step 3), and or otherwise, adding 1 to the subscript n of the discrete frequency point, and returning to step 4). By adoption of the PDN capacitor optimizing method, the target frequency band is expanded, and the number of the capacitors is reduced while the power supply distribution network design requirement is satisfied, so that the PDN capacitor optimizing method can be used for design and analysis of a high-speed system.