The internal rate of return is the discount rate at which the present value of an investment's inflows exactly equals the present value of its outflows, so that its net present value is zero. Office of Management and Budget Circular A-94, the federal guidance for benefit-cost analysis of government programs, states the definition in one line: "Internal Rate of Return. The discount rate that sets the net present value of the stream of net benefits equal to zero."
The definition is domain-general and worth reading that way. It appears in federal project appraisal, in real estate, in private-fund reporting, and on brokerage statements, and it means the same thing in all of them: the one constant annual rate that reconciles every dated cash flow with the amount invested. A bond's yield to maturity is the internal rate of return of that bond's cash flows, and the return figure a custodian computes from a client's own deposits and withdrawals is the internal rate of return of that account. Those are applications of the same arithmetic under different names, and each is a subject in its own right.