In order to compensate for the shrinkage of geopolymer pastes uniformly, reactive MgO powders are evenly dispersed in the geopolymer. The deformation performance, mechanical properties, microstructure and components of geopolymer pastes with reactive MgO are characterized. The effects of the content and the activity of MgO are discussed. The results indicate that the chemical shrinkage, autogenous shrinkage and drying shrinkage decrease with the addition of reactive MgO. MgO reacted with water, and fine Mg(OH)2 crystals forms as a geopolymer paste. Mg(OH)2 produces uniform expansion, which refines the pore size of pastes and the compressive strength increases. The shrinkage of the geopolymer pastes is thus effectively compensated.