A heliospheric density model is derived by evaluating the spherical solutio
ns of magnetohydrostatic equations including the thermal pressure and the g
ravitational force of the Sun. The model resulting as a special solution of
Parker's wind equation covers a range from the low corona up to 5 AU and,
surprisingly, agrees very well with observations. Such a model is required
for the interpretation of solar and interplanetary radio observations since
the emission of the radio radiation is regarded to be generated near the l
ocal electron plasma frequency, which depends on the electron number densit
y. Thus, the density model yields the radial distance of the radio source f
rom the Sun and, consequently, the radial source velocity from the drift in
dynamic radio spectra. The model is applied for estimating the velocity of
electron beams generating solar and interplanetary type III radio bursts.