For the cheaper pillows they should be replaced every 6 months to a year or when they start to break down.
Higher end more expensive pillows can last 2 to 10 years but most times people will replace the pillows before then due to hygiene reasons.
My pillows are the cheaper kind and I replace them once per year which is enough for me.