The cost of replacing a diesel particulate filter (DPF) can vary depending on several factors, such as the make and model of the vehicle, the location where the replacement is being done, and the labor costs. In general, the cost can range from a few hundred dollars to over a thousand dollars. It is recommended to get a quote from a certified mechanic or dealership to determine the exact cost of replacing a DPF.