Compacting effect is caused in forming process of ramming expanded piles.Based on the columm cavities expansion method,the compacting effect radius and lateral displacement of sands around piles in the forming process of expanded heads are deduced.The caculated results are applied to analyze a practical case.