Calculating the moment (Mo) using fault parameters assuming the fault accumulated some energy in the last few hundreds year and would rupture in one single event.
Calculating magnitude (Mw) for that moment.
Moment is calculated using the area of the locked fault (area of the fault that is high friction).
Mo = mu x D x A
Here,
mu = Shear modulus of the materials that would break during an earthquake, generally expressed in GPa (Giga Pascal).
D = Total accumulated strain calculated using the convergence rate and the time since the last earthquake.
A = Area of the locked fault
The magnitude of the potential earthquake.
Mw = 2/3 log(Mo) - 10.7
Please, see the following papers for details.
Hanks, T.C., Kanamori, H., 1979. A moment magnitude scale. J. Geophys. Res. 84, 2348. https://doi.org/10.1029/JB084iB05p02348