The invention discloses a power supply design method based on frequency domain analysis. The method comprises the following steps: step one, assessing a test platform, measuring an open-loop transfer function of the test platform, and determining a design object; step two, loading a test object, according to a test parameter, obtaining a compensation parameter, and drawing a Bode diagram of the compensation parameter, and then superposing the Bode diagram of the compensation parameter and the Bode diagram of the open-loop transfer function to obtain a closed-loop curve; step three, adjusting the parameter of an error amplifier, selecting a parameter value, and debugging the selected parameter value in a specifically applied circuit board to obtain a Bode diagram response curve of a whole loop; and step four, confirming a test result, obtaining the Bode diagram of a closed loop on the test platform, and comparing the Bode diagram of the closed loop on the test platform with a computer simulation graph so as to confirm whether the two match each other. According to the invention, the design period is greatly reduced, the product quality is enhanced, and the research and development efficiency is improved.