You can get cost of equity either from the dividend growth model or from the capital asset pricing model.

For the dividend growth model, you have:

Cost of equity = ((dividend paid) * (1+dividend growth))/(price)

For the capital asset pricing model (CAPM), the formula is :

Cost of equity= Rf + beta*(Rm-Rf)

Where Rf is the risk free rate (us treasury bills for example)

Beta is the beta of the stock (the one you want to find the cost of equity for) and

Rm is the return of the market (for example an index such as SP500 or FTSE100 etc.)