The chain rule is a fundamental formula in calculus used to compute the derivative of a composite function. It states that the derivative of a composite function is the derivative of the outer function evaluated at the inner function, multiplied by the derivative of the inner function.