Digital holographic microscopy is a well-known powerful technique for quantitative phase measurement. However, the object phase is always embedded in aberrations. Here, a simple numerical compensation method based on rotation and transpose is reported. At first, we can obtain transpose phase by doing transpose transformation for original unwrapped phase. After subtracting transpose phase from original unwrapped phase, the subtraction phase is obtained and parts of aberrations also can be compensated. Subsequently, the rotation phase is obtained by doing rotation transformation with 180° for subtraction phase. Then, the residual phase aberrations are eliminated by subtracting rotation phase from subtraction phase. Not only off-axis tilt and parabolic phase aberration but also high order aberrations are removed without fitting operation or prior parameter of the specimen. The great performance makes our scheme available for single-shot quantitative phase imaging. The simulation results demonstrate the feasibility of our proposal.