P0021: camshaft timing advanced
Camshaft Position 'A' Circuit Bank 2 Timing Over-Advanced or System Performance
Severity: high
Updated: 27 Nov 2026 · Generic OBD-II code (SAE J2012 / ISO 15031-6). Written with AI and reviewed; translated automatically from the Spanish original.
What it means
Code P0021 indicates that the engine's ECU (or PCM) has detected that the bank 2 intake camshaft is more advanced than the control strategy indicates, or that the variable valve timing system is not responding as it should. Bank 2 is the group of cylinders that does not contain cylinder 1; in V or boxer engines it is usually on the opposite side to the first. The ECU compares the actual camshaft position, measured with a position sensor, with the target position it calculates based on load, speed and temperature. If the difference exceeds a threshold for a set period of time, it stores the code. The system is usually regulated by a hydraulic or electric actuator that varies the timing angle through oil pressure or a control solenoid. The exact thresholds and bank numbering depend on the manufacturer.
Can I keep driving?
Only as far as you need to, and gently.
This fault can cause serious damage or affect safety. Avoid motorways, heavy loads and high revs, and have it diagnosed as soon as possible. If the engine shakes, loses power or a red light comes on, stop where it is safe.
If in doubt, put safety first: a red or flashing warning light, smoke, a burning smell or any change in the brakes or steering are reasons to stop.
Got P0021? Ask about your car
Tell us your car and what you notice: we answer right here, no account needed.
DATAIAO’s answer
AIYou're talking to DATAIAO's AI, specialised in car mechanics. Check anything important before acting. What we keep
Save this answer and your car, and I’ll ask you tomorrow whether it’s fixed.
Free and no card needed: 8 questions a day, your Garage and MOT/inspection reminders.
Warning: hazardous work
Affects:
Disclaimer. This information is for guidance only, is generated by artificial intelligence and may contain errors or omissions. Working on these systems can cause serious injury or death, as well as damage to the vehicle or to third parties. If you decide to do it, you do so at your own risk: always follow the manufacturer's workshop manual and the applicable regulations, and go to a workshop if you do not have the right training and tools. To the extent permitted by law, DATAIAO is not liable for damage arising from carrying out this work.
How the ECU detects it
The ECU continuously evaluates the variable valve timing system while the engine is running. The check is mainly carried out under stable conditions, when the engine has reached its operating temperature and the oil pressure is adequate. If the difference between the actual and target position persists over several driving cycles, the warning light comes on and the code is stored. The number of confirmation cycles and the exact thresholds depend on the make and engine: check the workshop manual for your engine. That is why a code can appear without any visible symptoms.
Symptoms
- Warning light on, sometimes intermittent.
- Rough or unstable idle, especially when cold.
- Loss of power, most noticeable when accelerating from low revs.
- Slightly higher fuel consumption than usual.
- Metallic noise on cold start in some engines with variable valve timing: this may indicate a timing problem that should be checked as soon as possible.
- In advanced cases, the engine may go into limp mode and respond in a poorly progressive way.
Common causes
- Engine oil at a low level, the wrong viscosity or very degraded, which affects the control pressure of the actuator.
- Timing control solenoid valve (VVT solenoid) stuck by dirt or sludge.
- Mesh filter of the solenoid valve blocked.
- Phaser actuator (camshaft variator) worn or with internal leakage.
- Bank 2 camshaft position sensor faulty or sending an incorrect signal.
- Timing chain or belt stretched, with the actual offset different from the expected one.
- Solenoid or sensor wiring or connector corroded, with a loose contact or damaged.
- ECU software out of date in some engine versions.
- The main cause varies by make and engine: check the workshop manual for your engine.
What to check
- With the engine stopped and cold, check the oil level and condition, and confirm that the viscosity is the one specified by the manufacturer.
- Review the maintenance history: oil changes spaced too far apart are a factor to take into account.
- Read the live data from a scanner for the bank 2 intake camshaft timing angle and compare it with the target at idle and at medium revs.
- Visually inspect the connector and wiring of the bank 2 solenoid and sensor, looking for corrosion, pinched wires or loose pins.
- Measure the solenoid resistance and check power supply and control signal, according to the manufacturer's specification (values: depends on make: check the workshop manual for your engine).
- Remove the solenoid valve and check its mesh filter and operation; clean or replace if appropriate.
- Check the hot oil pressure, if the manufacturer allows it.
- Verify the timing alignment (timing marks) if chain or belt stretch is suspected, following the manufacturer's procedure.
- Consult technical bulletins and software updates for the specific model before replacing parts.
- Safety: if you have to work with the engine running, keep hands, clothing and tools well clear of belts, fan and hot areas. Timing checks and chain or belt replacement should be carried out by professionals, because a mistake can seriously damage the engine.
Common diagnostic mistakes
- Replacing the position sensor without first checking the oil, the solenoid and its filter.
- Cleaning the solenoid without checking its resistance and power supply, which can hide an electrical fault.
- Confusing banks 1 and 2 and checking the wrong side of the engine.
- Assuming the repair is done after clearing the code without verifying that the fault does not return on a real road test.
- Ignoring an oil change that is overdue as a possible cause.
- Assuming the code is always due to the chain or belt without first ruling out simpler causes.
Typical repairs
From the simplest and cheapest to the most expensive. Which one applies depends on the diagnosis.
- Change the oil and filter with the specified viscosity, and top up to the correct level.
- Clean the control solenoid valve and replace its mesh filter.
- Replace the bank 2 control solenoid if its resistance or operation is outside the range.
- Repair or replace the damaged solenoid or sensor wiring or connector.
- Replace the bank 2 camshaft position sensor.
- Replace the bank 2 phaser actuator (variator) if it has internal leakage or wear.
- Repair the timing (chain, guides or tensioner) if stretch is confirmed; this requires major disassembly and must be done by a professional.
- Update the ECU software if the manufacturer recommends it for the model.
Notes by manufacturer
- VAG
- On variable valve timing engines from some VAG groups, a low oil level or oil outside specification is often linked to this type of fault, so it is common practice to check the oil and change history first.
A guide only: what is usual in that group of brands. Your exact engine may differ.
Frequently asked questions
Can I keep driving with code P0021 if the car seems to be fine?
Driving normally is not recommended. Even if the car seems to run well, a timing offset can end up damaging valves or pistons. If the engine runs without noticeable loss of power or noises, you can take it to the garage soon, avoiding high revs and heavy loads. It is worth checking the oil level and condition soon, as it is a frequent cause. Stop driving and go to a garage immediately if the engine becomes very rough, clearly loses power, a persistent metallic noise appears, or the oil pressure or temperature warning light comes on.
Can I just clear it? Clearing the code does not fix the fault: if the cause is still there, it comes back, and with the engine warning light on the car will fail its roadworthiness test (MOT in the UK).
General information about a generic code. The exact causes depend on the make and engine: confirm them with a diagnosis before replacing parts.
Related codes
- P0011 Affects the same type of intake timing, but on bank 1; P0021 refers to bank 2.
- P0022 Indicates that the bank 2 intake camshaft is more retarded than expected, exactly the opposite case to P0021.
- P0010 Points to a fault in the bank 1 timing actuator circuit, not bank 2.
- P0340 Refers to the camshaft position sensor circuit, and may appear alongside P0021 if the bank 2 sensor is involved.
More codes: fuel, air metering and emission controls
- P0014 · exhaust cam over-advanced
- P0015 · camshaft B timing retarded
- P0016 · Camshaft Position – Crankshaft Position Correlation Bank 1 Sensor A
- P0017 · crank-cam timing correl
- P0018 · crank-cam B2 timing offset
- P0019 · Crank-cam B2, sensor B
- P0020 · cam actuator bank 2
- P0022 · A cam over-retarded (bank 2)