When numerical method is used to solve position and attitude equation of Stewart platform, calculated speed is low and improper initial value will lead to incorrect result.To solve the problem, Levenberg-Marquardt (L-M) optimization algorithm was used for solving the nonlinear equations and warm start strategy for selecting the initial value. The experimental result shows that this method is fast and effective.