P0021 Toyota: Find the VVT Problem Before Replacing Parts
20 min read · by Nicole Bennett · Last updated: November 25, 2026
The P0021 Toyota trouble code means the engine computer has detected that the Bank 2 intake camshaft timing is more advanced than expected or is not responding correctly to the variable valve timing (VVT) command. On Toyota engines equipped with VVT-i, this fault commonly involves the oil control valve (OCV), restricted oil passages, incorrect mechanical timing, or a sticking camshaft timing gear assembly. It does not automatically mean the camshaft position sensor has failed.
You may notice a rough idle, reduced acceleration, poor fuel economy, unusual engine noise, or an illuminated check engine light. Some Toyota vehicles show very few noticeable symptoms, especially when the fault occurs intermittently. The severity depends on whether the camshaft timing is actually stuck, whether engine lubrication is affected, and whether other mechanical problems are present.
A useful diagnosis starts with checking engine oil condition, reading stored and pending codes, reviewing freeze-frame information, and comparing commanded and actual camshaft timing. Toyota service procedures also call for testing the oil control valve, inspecting its filter, and checking mechanical valve timing before replacing expensive components.
What P0021 Means on a Toyota
P0021 is a generic SAE powertrain diagnostic trouble code. Its official description is Camshaft Position “A” – Timing Over-Advanced or System Performance (Bank 2). The engine control module (ECM) has detected that the intake camshaft timing on the second cylinder bank is outside its expected operating range or is not following the requested timing adjustment.
Toyota engines use variable valve timing to adjust when the intake valves open and close. On VVT-i-equipped engines, the ECM controls an oil control valve that directs engine oil pressure toward a camshaft timing mechanism. This mechanism changes the camshaft’s position relative to the crankshaft. The adjustment helps balance engine torque, fuel economy, and emissions under different driving conditions.
When the ECM requests a particular camshaft position, it compares the expected timing with information from the camshaft and crankshaft position sensors. If the actual timing remains excessively advanced or does not respond correctly, the computer can store P0021. The code identifies a timing-control performance problem, not necessarily an electrical failure or a defective sensor.
The code has several important elements:
| Code element | Meaning |
|---|---|
| P | Powertrain-related fault involving the engine or transmission system. |
| 0 | Generic SAE diagnostic trouble code. |
| 0 | Engine and fuel-related diagnostic category. |
| 2 | Identifies the specific code within the powertrain diagnostic family. |
| 1 | Distinguishes this fault from other camshaft timing codes. |
Understanding Bank 2 and Camshaft A
Bank 2 refers to the cylinder bank that does not contain cylinder number one. Bank 1 contains cylinder number one. This distinction matters because a Toyota V6 or V8 has multiple cylinder banks, and the ECM monitors their camshaft timing separately.
Camshaft A generally identifies the intake camshaft in the applicable diagnostic system. P0021 therefore concerns the intake camshaft timing on Bank 2. It should not be confused with P0022, which identifies an over-retarded timing condition on the same bank. P0020 is different again because it identifies a Bank 2 camshaft actuator circuit problem.
Toyota service documentation for the 3MZ-FE and 1GR-FE engines specifically identifies P0021 as an over-advanced or system-performance fault on Bank 2. The diagnostic approach can differ between engines, model years, and VVT system designs. Always confirm the correct bank and component arrangement using the repair information for the exact vehicle.
How VVT-i Relates to P0021
VVT-i depends on suitable oil pressure and a properly operating control valve. When the ECM changes the electrical command to the OCV, the valve regulates oil flow to the camshaft timing mechanism. The mechanism then adjusts intake valve timing. If the oil flow is restricted, the valve sticks, or the timing mechanism cannot return to its intended position, actual camshaft timing may not match the requested position.
This explains why an engine oil problem can produce a camshaft timing code. The ECM may be functioning correctly while the hydraulic system fails to move the camshaft as commanded. Replacing an electrical sensor without checking the oil supply and VVT operation can leave the original problem unresolved.
Symptoms of a Toyota P0021 Code
P0021 can cause noticeable changes in engine operation because valve timing affects how efficiently the engine breathes. Symptoms may appear during cold starts, warm idling, acceleration, or steady-speed driving. Their severity depends on how far actual camshaft timing differs from the ECM’s target.
A Toyota with an intermittent VVT problem might still start and drive normally. A vehicle with a more serious timing-control fault may idle poorly, hesitate, or lose engine power. Pay attention to changes that occur together with the check engine light rather than assuming every symptom comes from a single defective component.
- Check engine light: The malfunction indicator light illuminates after the ECM detects and confirms the timing-control problem. A pending P0021 may appear before the light turns on.
- Rough idle: The engine may shake, vibrate, or run unevenly when camshaft timing is incorrect at idle.
- Hard starting: Incorrect valve timing can make starting less consistent, particularly when the timing mechanism does not return to its intended position.
- Reduced acceleration: The engine may respond slowly when you press the accelerator because the intake valve timing is not being adjusted correctly.
- Poor fuel economy: Incorrect valve timing can reduce combustion efficiency and increase fuel consumption.
- Engine hesitation: You may notice hesitation during acceleration, especially when engine load or speed changes.
- Unusual engine noise: A sticking timing mechanism or lubrication problem may produce rattling or other mechanical noise.
- Stalling: More serious timing-control problems can cause unstable idle operation or engine shutdown.

Not every Toyota will show all these symptoms. Some vehicles have only an illuminated warning light, while others experience several driveability problems. An intermittent code may also disappear temporarily when oil flow or the VVT mechanism returns to normal operation.
Symptoms That Need Immediate Attention
A flashing check engine light is more urgent than a continuously illuminated light. A flashing light indicates an active misfire that can damage the catalytic converter. Reduce engine load and arrange prompt diagnosis. Do not continue normal driving simply because the vehicle still moves. Seeing the code on another make? Start with P0021 Lexus.
Also take severe knocking, persistent metallic rattling, an oil-pressure warning, or repeated engine stalling seriously. These symptoms may indicate a lubrication or mechanical timing problem beyond the stored P0021 code. Stop the engine when an oil-pressure warning appears and have the vehicle inspected rather than continuing to drive.
Common Causes of P0021 on Toyota Vehicles
The most common diagnostic areas involve engine oil supply, the Bank 2 oil control valve, the camshaft timing mechanism, and mechanical valve timing. Toyota service procedures for engines such as the 3MZ-FE and 1GR-FE specifically include these components in their P0021 troubleshooting sequences.
The same code can have different causes depending on the engine and model year. A Toyota V6 with a VVT-i system should not automatically receive the same repair as another Toyota with a different engine configuration. Test the system before deciding which part needs replacement.
1. Dirty, Incorrect, or Low Engine Oil
Engine oil is essential to the hydraulic operation of the VVT-i system. Low oil level can reduce the oil supply available to the camshaft timing mechanism. Dirty or degraded oil may also contribute to deposits that interfere with small oil passages and moving valve components.
Incorrect oil viscosity can affect hydraulic response, particularly when the engine is cold or operating under changing loads. Check the oil level and verify that the oil specification matches the requirements for the exact Toyota engine. Also consider the service history, oil condition, and possible contamination.
2. Sticking or Contaminated Oil Control Valve
The oil control valve regulates oil flow to the VVT actuator. If the valve sticks, becomes contaminated, or fails to respond to ECM commands, the intake camshaft may remain more advanced than requested.
Toyota’s 3MZ-FE diagnostic procedure specifically calls for checking whether the OCV is contaminated and moves smoothly. An electrically functioning valve can still have a mechanical problem, so checking its operation is important. Replacing it without inspecting the oil supply may not solve the underlying fault.
3. Clogged OCV Filter or Oil Passage
Small filters and oil passages help deliver clean oil to the VVT components. Sludge, debris, and other foreign material can restrict this flow. Even a functioning OCV cannot regulate the camshaft correctly if the hydraulic supply is obstructed.
Toyota’s repair procedures include inspecting the OCV filter, oil check valve, and oil passages. The 3MZ-FE procedure also identifies blockage in these areas as a condition that must be corrected. This is why an oil-related inspection should happen before replacing a complete timing assembly.
4. Faulty Camshaft Timing Gear Assembly
The camshaft timing gear assembly, commonly associated with the VVT actuator or phaser, changes the camshaft’s position using controlled oil pressure. Internal wear, binding, or a sticking mechanism can prevent the camshaft from returning to the requested timing position.
Toyota includes this assembly in its diagnostic procedure after checking the valve timing and oil control system. A damaged timing gear may require more extensive engine work than an OCV inspection. Proper testing is important because the assembly should not be replaced based on P0021 alone.
5. Incorrect Mechanical Valve Timing
A stretched timing chain, incorrect timing adjustment, loose components, or jumped timing teeth can cause camshaft timing to fall outside the expected range. Toyota’s 3MZ-FE diagnostic procedure specifically checks for loose or jumped timing-belt teeth during the mechanical timing inspection.
Mechanical timing problems are especially important when P0021 appears with additional camshaft or crankshaft correlation codes. A problem affecting the timing drive can cause more serious engine damage if ignored. Follow the engine-specific timing inspection procedure rather than assuming the OCV is responsible.
6. Wiring, Electrical Signals, or ECM Problems
A damaged connector, corroded terminal, broken wire, or poor electrical connection can interfere with OCV control. Although P0021 is a performance code rather than a dedicated actuator circuit code, electrical faults can still affect the system’s ability to adjust camshaft timing.
The ECM is another possible trouble area, but it should be considered only after the mechanical, hydraulic, and electrical checks have been completed. Toyota’s 1GR-FE procedure includes checking the OCV control signal with an oscilloscope. This is a more advanced test than simply measuring resistance with a basic multimeter.
Tip: Check engine oil level and condition before purchasing a replacement OCV or VVT actuator. Toyota service documentation notes that foreign material in the oil can temporarily interfere with the VVT system and trigger P0021. Correcting the contamination or restriction may resolve the underlying problem without replacing the timing gear assembly.
How to Diagnose P0021 Toyota With an OBD2 Scanner
A proper diagnosis should identify why Bank 2 camshaft timing is not following the ECM’s command. A basic OBD2 scanner can retrieve the code and some supporting information, but a more capable scanner with Toyota-specific live data and active-test functions provides better diagnostic coverage.
Toyota’s factory diagnostic approach includes checking additional codes, reviewing freeze-frame data, operating the OCV with an active test, and inspecting the mechanical and hydraulic parts. The exact menu names and available data depend on the engine and scan tool.
- Connect the scanner: Locate the 16-pin OBD-II diagnostic connector, usually beneath the driver’s dashboard. Connect the scanner and switch the ignition to the appropriate position for reading engine codes.
- Read all stored codes: Scan the ECM for stored, pending, and permanent codes. Record P0021 and any related codes before clearing anything. Look for other camshaft, crankshaft, actuator, or oil-pressure-related faults.
- Save freeze-frame data: Record engine speed, coolant temperature, calculated load, vehicle speed, and available fuel-system information. These readings help establish the conditions present when P0021 was detected.
- Check engine oil: Inspect the oil level and condition. Confirm that the specified oil grade is being used and check for signs of sludge, contamination, or an overdue oil service.
- Review live camshaft data: Look for Bank 2 desired camshaft angle and actual camshaft angle, if supported. Compare their movement under suitable operating conditions rather than relying on one reading at idle.
- Inspect fuel trims and engine data: Review short-term and long-term fuel trims to identify possible mixture problems. Combined corrections beyond roughly plus or minus 10 percent deserve further investigation, although fuel trims do not directly confirm a VVT failure.
- Perform a VVT active test: If the scanner supports bidirectional control, use the Toyota-specific test procedure to command the Bank 2 oil control valve. Observe the response of engine speed and camshaft timing data.
- Inspect the electrical circuit: Check the OCV connector, wiring, terminal condition, and control signal against the correct service specifications.
- Inspect mechanical timing and oil passages: If the active test indicates abnormal operation, continue with the mechanical timing, OCV filter, oil check valve, oil passage, and camshaft timing gear inspections.
- Verify the repair: After correcting the confirmed problem, clear codes when appropriate, complete the required drive cycle, and rescan the ECM to check whether P0021 returns.

Understanding Live Data and Freeze-Frame Readings
Freeze-frame information is particularly useful because it shows the operating conditions recorded when the fault was detected. For example, a code that appears after the engine warms up may point toward a different diagnostic pattern than a fault that appears immediately after a cold start.
Compare the desired and actual Bank 2 camshaft angles whenever the scan tool provides those parameters. A healthy system should respond to changes in the ECM’s VVT command. If the requested angle changes but the actual angle remains fixed, investigate oil supply, OCV movement, and the timing gear assembly.
Do not apply one universal camshaft-angle limit to every Toyota. Acceptable values and test conditions depend on the engine calibration. Use the specifications in the correct repair manual rather than treating a generic scanner reading as a pass-or-fail result.
Using Mode $06 and Other Scanner Functions
Mode $06 can provide information about supported onboard monitor test results. Depending on the vehicle and scanner, it may help identify whether an emissions-related monitor is approaching or exceeding its calibrated limits. However, not every Toyota exposes useful VVT information through Mode $06, and a generic tool may display test identifiers without clear descriptions.
A Toyota-capable scanner may provide additional information, including VVT command percentages, camshaft position changes, and active-test controls. These functions can help distinguish a control problem from a mechanical timing issue. A basic code reader that only displays P0021 cannot establish which component has failed. If you want to see how the same fault shows up on another make, read our guide to P0021 Subaru Code.
For a detailed example of Toyota’s diagnostic approach, consult the Toyota 3MZ-FE SFI diagnostic procedure. It describes the valve timing inspection, OCV active test, filter inspection, and camshaft timing gear checks.
How to Fix P0021 on a Toyota
The correct repair depends on the test results, not the code description alone. Start with the simplest confirmed problem, such as incorrect oil level or contamination, before considering component replacement. More extensive work may be necessary if the camshaft timing mechanism or timing drive is damaged.
Toyota’s diagnostic procedures provide a useful repair sequence. They include checking mechanical valve timing, testing the OCV, inspecting the filter and oil passages, evaluating the timing gear assembly, and checking ECM signals where necessary.
Correct Engine Oil Problems
If the engine oil is low, contaminated, excessively dirty, or incorrect for the engine, correct the problem using the manufacturer’s maintenance specifications. Investigate why the oil level is low rather than simply topping it off and assuming the fault is fixed.
If sludge or debris is present, the technician may need to inspect the oil filter and relevant VVT oil passages. Avoid aggressive chemical flushing unless the correct Toyota repair information specifically supports the procedure. Dislodged deposits can create additional restrictions in small hydraulic passages.
Clean or Replace the Oil Control Valve
If testing confirms that the Bank 2 OCV is sticking or contaminated, the repair may involve cleaning an approved serviceable component or replacing the faulty valve. The technician should also check the connector and verify that the valve responds correctly to the ECM command.
Cleaning is not a guaranteed repair. A worn or internally damaged valve may continue to stick after cleaning. Follow the manufacturer’s inspection criteria and replace the component if it fails the required operational tests.
Clear Restrictions in the OCV Filter and Oil Passages
A blocked filter, oil check valve, or oil passage can prevent the VVT actuator from receiving the required hydraulic pressure. The repair involves identifying the restriction and restoring the oil flow according to the engine-specific service procedure.
Simply replacing the OCV will not correct a blocked oil passage. The technician should also determine whether debris is coming from a larger engine lubrication problem. Otherwise, the replacement component may develop the same symptoms.
Repair the Camshaft Timing Gear Assembly
If the VVT actuator or camshaft timing gear assembly fails its inspection, replacement may be required. This repair is generally more involved than servicing an external oil control valve because access may require significant engine disassembly.
The replacement must match the correct engine and Bank 2 configuration. Mechanical timing marks and installation procedures must be followed precisely. Incorrect installation can introduce additional camshaft timing problems and potentially cause serious engine damage.
Correct Mechanical Timing or Electrical Faults
If the timing chain, timing belt, or associated components are incorrectly positioned or damaged, the engine’s mechanical timing must be restored to specification. Depending on the engine design, this may require checking tensioners, guides, sprockets, and alignment marks.
Electrical repairs may involve correcting damaged wiring, cleaning or repairing connectors, or addressing a confirmed ECM control issue. ECM replacement should be a last step after verifying the electrical signals, oil control system, and mechanical components. It is not a sensible first response to P0021.
After the repair, the technician should clear the stored fault when appropriate, run the required confirmation procedure, and check whether the code returns. Toyota’s cited procedures include warming the engine and driving for at least 10 minutes during particular confirmation checks, although the correct drive pattern depends on the specific engine and repair procedure.
Is It Safe to Drive With P0021? Repair Cost Factors
Driving with P0021 is not recommended until the cause is understood. A Toyota with a minor intermittent VVT problem may continue running, but an unresolved lubrication or mechanical timing fault can become more serious. The safest decision depends on engine behavior, warning lights, oil pressure, and the presence of additional diagnostic codes.
If the check engine light is steady and the engine runs normally, a short, gentle trip to a repair facility may be reasonable after checking for oil-pressure warnings and obvious mechanical symptoms. Avoid heavy acceleration, high engine loads, towing, and unnecessary driving while diagnosis is pending.
Stop driving and arrange professional assistance if the engine develops severe rattling, knocking, persistent stalling, overheating, or an oil-pressure warning. A flashing check engine light also requires prompt attention because an active misfire can damage the catalytic converter.
What Affects P0021 Repair Costs?
There is no reliable single repair cost for every Toyota with P0021. The total depends on the confirmed cause, engine configuration, parts required, labor time, and whether the work is completed at a dealership, independent repair shop, or by an experienced DIY owner.
- Oil service: Correcting an oil-level or maintenance problem generally involves less labor than replacing an internal engine component. Additional cleaning or inspection may increase the work required.
- OCV repair: The cost depends on component accessibility, whether cleaning is appropriate, and whether replacement is necessary.
- Filter and passage inspection: Accessing a restricted filter or oil passage may require additional disassembly and diagnostic labor.
- Timing gear replacement: A failed VVT actuator or camshaft timing gear generally involves more labor because of the additional access and timing work required.
- Timing chain or belt repairs: Damaged timing components can require extensive work, including inspection of associated guides, tensioners, and sprockets.
- Electrical diagnosis: Wiring faults or ECM problems may require additional testing equipment and technician time before the defective component can be identified.
- Shop versus DIY: DIY work may reduce labor expenses, but specialist tools, service information, access requirements, and the risk of incorrect timing installation must be considered.
Before approving a repair, ask the shop which diagnostic tests confirmed the failed component. A useful estimate should separate parts, labor, diagnostic time, and any additional work needed to correct an underlying oil contamination or mechanical timing issue.
If the estimate includes replacing the ECM or complete camshaft timing assembly, request an explanation of the test results supporting that decision. A confirmed OCV fault and a confirmed internal timing gear failure require different repairs. Understanding the evidence helps prevent unnecessary parts replacement. If a second code shows up during the scan, P0017 Toyota Code could be the next stop.
For additional engine-specific diagnostic information, Toyota’s 1GR-FE SFI system repair procedure documents the freeze-frame review, OCV active test, electrical signal inspection, and mechanical timing checks. These procedures illustrate why the correct repair depends on the engine and the actual test results.
Frequently Asked Questions
1. Does P0021 mean Bank 2 is always on the driver’s side?
No. Bank 2 is defined by the cylinder bank that does not contain cylinder number one. Its physical location depends on the engine layout and vehicle orientation. Consult the correct Toyota engine diagram before identifying the Bank 2 components.
2. Can P0021 appear without turning on the check engine light?
Yes. A pending P0021 can be recorded after the ECM detects a fault once, before the malfunction meets the confirmation requirements for illuminating the warning light. A scan tool may reveal the pending code even when the dashboard light is off.
3. Will disconnecting the Toyota battery permanently erase P0021?
No. Disconnecting the battery is not a permanent repair. Stored diagnostic information may be cleared on some vehicles, but permanent OBD-II codes remain until the underlying fault is fixed and the required monitor passes. Battery disconnection can also reset readiness information and other learned settings.
4. Can P0021 cause an emissions inspection failure?
Yes. An active emissions-related malfunction that illuminates the check engine light can cause a vehicle to fail an OBD-II emissions inspection. Clearing the code immediately before testing is not a reliable solution because readiness monitors may show incomplete, and permanent codes do not disappear simply because they were cleared.
5. Can P0021 return after replacing the oil control valve?
Yes. A replacement OCV will not correct a blocked oil passage, damaged timing gear, incorrect mechanical timing, or an electrical control problem. If P0021 returns, compare the new diagnostic results with the original freeze-frame information and continue testing the remaining VVT components.
P0021 on a Toyota indicates an over-advanced or incorrectly controlled Bank 2 intake camshaft, but it does not identify one failed part. Start with engine oil, freeze-frame information, and VVT active testing before inspecting the OCV filter, oil passages, timing gear, and mechanical timing. Confirm the actual fault before replacing components to avoid unnecessary repairs and further engine damage.
-
Nicole Bennett, Technical Content Editor at BestOBD2Picks Nicole turns OBD-II standards, service bulletins, and repair data into step-by-step diagnostic guides anyone can follow. Technical Content Editor
Related guides
LearnP0021 Code: Meaning, Causes and Repair Costs
LearnP0051 Toyota: Oxygen Sensor Heater Circuit Code Explained
LearnP0016 Toyota Code: What It Means and What to Check First
LearnP0012 Toyota Code: Meaning, Causes and What to Check
LearnP0050 Toyota: Diagnose the Oxygen Sensor Heater Circuit
LearnP1145 Code: Understand Manufacturer-Specific Faults and Diagnose Them Correctly