A Bose gas in an external potential is studied by means of the local density approximation. Analytical results are derived for the thermodynamic properties of an ideal Bose gas in a generic power-law trapping potential, and their dependence on the mutual interaction of atoms in the case of a non-ideal Bose gas. (C) 1998 Elsevier Science B.V. All rights reserved.