P0521Generic code

P0521 Code: Engine Oil Pressure Sensor/Switch Circuit Range/Performance

The P0521 code means the oil pressure sensor or switch gives a reading that is electrically valid but does not match what the computer expects. The oil pressure reading cannot be trusted. Check the oil level and confirm the real pressure with a mechanical gauge before you blame the sensor.

Severity
High
Can I keep driving?
Yes, but with caution
Estimated cost
$20 to $250
Difficulty
Medium
System
Computer and Outputs
Applies to
All OBD2 vehicles
On this page

What the P0521 code means

The oil pressure sensor warns the driver (red light or gauge) and, on many modern engines, reports to the computer so it can protect the engine or control the variable oil pump and the variable valve timing.

The sensor gets a 5 V reference and a ground from the computer and returns a signal between about 0.5 and 4.5 V. A range or performance fault, which is what the P0521 code reports, means the sensor is reading but reading wrong, or that there is a real abnormal condition.

Before you blame the sensor, always check the oil level and, if there is any doubt, measure the real pressure with a mechanical gauge. A sensor that shows low pressure may be telling the truth, and driving without pressure destroys an engine in minutes. The sensor profile pages cover how to test one.

This kind of fault rarely shows up with a multimeter, because everything looks electrically correct. You have to compare what the part says against reality: with a gauge, a thermometer, a tachometer, or by commanding the component with the scan tool and seeing whether the physical result matches the command.

P0521 code symptoms

  • Check engine light on.
  • Oil pressure reading that cannot be trusted.
  • Oil light on or flashing.
  • Pressure gauge at zero or jumping around.

Likely causes of the P0521 code

  1. Degraded or out-of-calibration sensor. It gives believable readings that are wrong.
  2. A real abnormal condition. The system really is running outside normal.
  3. High resistance in the connector. Corrosion shifts the reading.
  4. Damaged or blocked port, hose or reluctor wheel, depending on the type of sensor.

How to diagnose the P0521 code step by step

  1. Read the sensor value on the scan tool and compare it with what you expect.
  2. Inspect the connector for corrosion, water or loose pins.
  3. Check the supply and ground with the key on: the reference should be correct, with less than 0.1 V of voltage drop on the ground.
  4. Measure the signal with the connector plugged in and watch whether it changes with the condition.
  5. Do a wiggle test on the harness with the scan tool in graph mode.
  6. Check the continuity of each wire to the computer (under 1 ohm).
  7. Check the oil level.
  8. Measure the real pressure with a mechanical gauge at the sensor port.

How to fix the P0521 code

  • Repair the connector or the wiring.
  • Replace the sensor if the tests confirm it is bad.
  • Correct the real condition if there is one.
  • Clear the codes and verify with a road test.

Technical reference data

  • Approximate pressure with a hot engine: 1 to 2 bar (about 15 to 29 psi) at idle and 3 to 5 bar (about 44 to 73 psi) at 3,000 rpm.
  • Reference of 5 V, with a signal of about 0.5 to 4.5 V.
  • These values are a general guide: check the manufacturer data for your vehicle.

Brand-specific notes

The sensor often leaks oil through its connector, so look for oil inside the plug before you condemn the wiring.

P0521 on GM

Oil leaking past the sensor into the connector is a typical failure on GM vehicles.

P0521 on Ford

Oil leaking past the sensor into the connector is a typical failure on Ford vehicles.

P0521 on Hyundai

Oil leaking past the sensor into the connector is a typical failure on Hyundai vehicles.

Frequently asked questions about P0521

What does the P0521 code mean?
It is a generic OBD2 code that means the oil pressure sensor or switch gives a reading that is electrically valid but does not match what the computer expects. The pressure reading cannot be trusted until the cause is found.
Can I drive with a P0521 code?
Only after you confirm that the real pressure is correct. If the oil light comes on while you are driving, shut the engine off.
Do I have to replace the sensor?
Only if the tests confirm it. The connector and the wiring fail just as often.
What does the oil pressure sensor do?
The oil pressure sensor warns the driver (red light or gauge) and, on many modern engines, reports to the computer so it can protect the engine or control the variable oil pump and the variable valve timing.
How much does it cost to fix P0521?
As a rough guide, between $20 and $250. A connector repair or a cleaning is at the low end, and a new sensor with labor is at the high end.
Will a P0521 code clear itself?
Not reliably. If the sensor is drifting or the connector is oily, the P0521 code comes back, and real low pressure will not go away on its own.
What is the most common cause of P0521?
A sensor that has degraded or drifted out of calibration, or a connector corroded or soaked in oil. Always rule out a real pressure problem before you assume it is the sensor.

Questions about the P0521 code

There are no questions about this code yet. Tell us about your case: vehicle, symptoms and what you have already checked.