The internal rate of return (IRR) is a metric used in capital budgeting to estimate the return of potential investments. Here is the formula for calculating it.