The task of present research is to establish an enhanced version of residual power series (RPS) technique for the approximate solutions of linear and nonlinear space-time fractional problems with Dirichlet boundary conditions by introducing new parameter
λ
. The parameter
λ
allows us to establish the best numerical solutions for space-time fractional differential equations (STFDE). Since each problem has different Dirichlet boundary conditions, the best choice of the parameter
λ
depends on the problem. This is the major contribution of this research. The illustrated examples also show that the best approximate solutions of various problems are constructed for distinct values of parameter
λ
. Moreover, the efficiency and reliability of this technique are verified by the numerical examples.