The formula for calculating the force acting on an object is given by Newton's second law of motion: F = ma, where F is the force, m is the mass, and a is the acceleration.