We present studies on modifications in the temperature, number density and phase-space density when a laser-cooled atom cloud from optical molasses is trapped in a quadrupole magnetic trap. Theoretically, for a given temperature and size of the cloud from the molasses, the phase-space density in the magnetic trap is shown first to increase with increasing magnetic field gradient and then to decrease with it after attaining a maximum value at an optimum value of the magnetic-field gradient. The experimentally-measured variation in the phase-space density in the magnetic trap with changing magnetic field gradient is shown to exhibit a similar trend. However, the experimentally-measured values of the number density and the phase-space density are much lower than the theoretically-predicted values. This is attributed to the experimentally-observed temperature in the magnetic trap being higher than the theoretically-predicted temperature. Nevertheless, these studies can be useful for setting a higher phase-space density in the trap by establishing an optimal value of the field gradient for a quadrupole magnetic trap.