We prove an explicit formula for local densities of inhomogeneous quadratic forms. The formula is derived by calculating explicitly the Fourier coefficients of various types of Eisenstein series.