Yes, you can, but it’s going to be an expensive job as all the components used by the gasoline engine would be swapped for their diesel components, which could cost from $1,000 to $10,000 or even more. Also, diesel engines are more expensive than gasoline engines, so the total cost of swapping from gasoline to diesel may reach up to $15,000, or way higher, depending on the engine’s specifications. Learn about the cost of an engine swap.