This paper solves the problem of optimal dynamic consumption, investment, and healthcare spending with isoelastic utility, when natural mortality grows exponentially to reflect Gompertz law and investment opportunities are constant. Healthcare slows the natural growth of mortality, indirectly increasing utility from consumption through longer lifetimes. Optimal consumption and healthcare imply an endogenous mortality law that is asymptotically exponential in the old-age limit, with lower growth rate than natural mortality. Healthcare spending steadily increases with age, both in absolute terms and relative to total spending. The optimal stochastic control problem reduces to a nonlinear ordinary differential equation with a unique solution, which has an explicit expression in the old-age limit. The main results are obtained through a novel version of Perrons method.