Utilizing a data set corresponding to an integrated luminosity of 6.32~fb−1, recorded by the BESIII detector at center-of-mass energies between 4.178 and 4.226~GeV, we perform an amplitude analysis of the decay Ds+→KS0π+π0 and determine the relative fractions and phase differences of different intermediate processes, which include KS0ρ(770)+, KS0ρ(1450)+, K∗(892)0π+, K∗(892)+π0, and K∗(1410)0π+. Using a double-tag technique, and making an efficiency correction that relies on our knowledge of the phase-space distribution of the decays coming from the amplitude analysis, the absolute branching fraction is measured to be B(Ds+→KS0π+π0)=(5.43±0.30stat±0.15syst)×10−3.