CAPM estimates the return equity investors require as the risk-free rate plus beta times the equity risk premium.
Cost of equity = risk-free rate + beta × equity risk premium
CAPM is the standard way to set the cost of equity inside a WACC. Each input is a judgment: which government bond yield to use for the risk-free rate, which beta estimate, and which equity risk premium.
Only the premium is scaled by beta. Multiplying the whole sum by beta is a common slip.
Practise it: Weighted average cost of capital.