The relative dispersion of the cloud droplet spectra or the shape parameter is usually assumed to be a constant in the two-parameter cloud microphysical scheme, or is derived through statistical analysis. However, observations have revealed that the use of such methods is not applicable for all actual cases. In this study, formulas were derived based on cloud microphysics and the properties of gamma function to solve the average cloud droplet radius and the cloud droplet spectral shape parameter. The gamma distribution shape parameter, relative dispersion, and cloud droplet spectral distribution can be derived through solving the droplet spectral shape parameter equation using the average droplet radius, volume radius, and their ratio, thereby deriving an analytic solution. We further examined the equation for the droplet spectral shape parameter using the observational droplet spectral data, and results revealed the feasibility of the method. In addition, when the method was applied to the two-parameter cloud microphysical scheme of the Weather Research and Forecast (WRF) model to further examine its feasibility, the modeling results showed that it improved precipitation simulation performance, thereby indicating that it can be utilized in two-parameter cloud microphysical schemes.