Three axis attitude utilizing magnetorquers and magnetometer is considered. Stabilization is provided with PD-controller and Kalman filter. Disturbances, inertia tensor and magnetometer errors are taken into account. Stabilization accuracy dependence on orbit inclination is provided.