In this article we improve Heath-Brown’s estimate for the error term in the three-dimensional sphere problem, proving #{x∈Z3:∥x∥≤R}=34πR3+Oε(R55/42+ε). Incoporating the recent OpenAI quasi-GRH into our argument further improves this to #{x∈Z3:∥x∥≤R}=34πR3+Oε(R17438722274811+ε).