If the three moments of inertia are distinct, the solution to the Euler equations for the free rigid body is given in terms of Jacobi elliptic functions. Using the arithmetic–geometric mean algorithm (Abramowitz and Stegun 1992 Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables (New York: Dover)), these functions can be calculated efficiently and accurately. Compared to standard numerical ODE and Lie–Poisson solvers, the overall approach yields a faster and more accurate numerical solution to the Euler equations. This approach is designed for mass asymmetric rigid bodies. In the case of symmetric bodies, the exact solution is available in terms of trigonometric functions, see Dullweber et al (1997 J. Chem. Phys. 107 5840–51), Reich (1996 Fields Inst. Commun. 10 181–91) and Benettin et al (2001 SIAM J. Sci. Comp. 23 1189–203) for details. In this paper, we consider the case of asymmetric rigid bodies subject to external forces. We consider a strategy similar to the symplectic splitting method proposed in Reich (1996 Fields Inst. Commun. 10 181–91) and Dullweber et al (1997 J. Chem. Phys. 107 5840–51). The method proposed here is time-symmetric. We decompose the vector field of our problem into a free rigid body (FRB) problem and another completely integrable vector field. The FRB problem consists of the Euler equations and a differential equation for the 3 × 3 orientation matrix. The Euler equations are integrated exactly while the matrix equation is approximated using a truncated Magnus series. In our experiments, we observe that the overall numerical solution benefits greatly from the very accurate solution of the Euler equations. We apply the method to the heavy top and the simulation of artificial satellite attitude dynamics.