hard poo!?

my one month old has been having hard poop the past few days. He is formula fed. He is pooping at least once a day but when he does it is very hard and he cries the entire time he's pooping!