Abstract. We introduce a modified L1 scheme for solving time fractional partial differential equations and obtain error estimates for smooth and nonsmooth initial data in both homogeneous and inhomogeneous cases. Jin et al. (2016, An analysis of the L1 scheme for the subdiffusion equation with nonsmooth data, IMA J. of Numer. Anal.,36, established an O(k) convergence rate for the L1 scheme for smooth and nonsmooth initial data for the homogeneous problem, where k denotes the time step size. We show that the modified L1 scheme has convergence rate O(k 2−α ), 0 < α < 1 for smooth and nonsmooth initial data in both homogeneous and inhomogeneous cases. Numerical examples are given to show that the numerical results are consistent with the theoretical results.