The Landau-Zener formula for the probability that a nonadiabatic transition has taken place is derived without solving directly the usual second-order differential equation. This is achieved in just a few steps by using contour integration.