A replacement dishwasher pump can cost from $60.00 to $200.00 which is almost near the cost of a new dishwasher if you buy the higher priced dishwasher pump.
Then if you have a repair person replace the dishwasher pump then you may pay a service charge and the cost to replace the dishwasher pump would be around $160.00 to $300.00 for parts and labor.
So if the dishwasher is 10 years old or older or is nearing 10 years old then it would be best to just get a new dishwasher instead of repairing the dishwasher with a new pump.
However if the dishwasher is only a few years old then it may be worth the cost of replacing the dishwasher pump especially if you can do the job yourself or have a local cheaper handyman do the replacement of the dishwasher pump.
Hiring a professional to do the job can raise the price to where it would be best to replace the entire dishwasher.