Temperature evolution during electromagnetic pulsed compaction was investigated. A numerical thermodynamic model using multi-particle finite element method was presented. Energy conversion for temperature rise was studied. Effect of friction and compacting velocity was analyzed. Evolution of temperature gradient was revealed.