This paper presents a third order iterative method for obtaining the Moore–Penrose and Drazin inverses with a computational cost of O(n3), where n∈N. The performance of the new approach is compared with other methods discussed in the literature. The results show that the algorithm is remarkably efficient and accurate. Furthermore, sufficient criteria in the fractional sense are presented, both for smooth and non-smooth solutions. The fractional elliptic Poisson and fractional sub-diffusion equations in the Caputo sense are considered as prototype examples. The results can be extended to other scientific areas involving numerical linear algebra.