The pyramid indentation process is analyzed using a three dimensional finite element method. The deformation behavior including compaction and pile-up of iron powder compacts is analyzed. The effect of random voids on the hardness measurement is studied.