Replace Camshaft Position Sensor 2011-2017 Hyundai Elantra

By | February 1, 2022

Replace Camshaft Position Sensor 2011-2017 Hyundai Elantra
Replacing the camshaft sensor on a 2011-2017 Hyundai Elantra is an easy task that falls into the DIY category.

There are two camshaft position sensors, A and B, both located next to each other.

The Hyundai Elantra, 1.8 Liter DOHC, has two camshafts, so it has two sensors.

The OBDII code for a Hyundai with a bad camshaft sensor is a P0016 or P0017.
OBDII Error Codes
P0016 Camshaft Position Sensor Bank 1 Sensor A
P0017 Camshaft Position Sensor Bank 1 Sensor B
Camshaft Position Sensor Location (2011-2017 Hyundai Elantra)
The camshaft position sensors are located on the top right of the engine under the cover.
Camshaft Position Sensor Location 2011-2017 Hyundai
The cover is held on with four tabs which the cover is pulled up on, and they snap off.

Parts and Tools Needed

  • 10mm socket and ratchet.
  • New camshaft position sensor.

It is usually best to replace both sensors since they are low-cost parts.

One sensor can be bought and swapped around to find the bad one if you are on a budget.

A 10mm socket and ratchet are needed to remove the bolt holding them in place.

How To Replace Camshaft Position Sensor 2011-2017 Hyundai Elantra

  1. Remove the engine cover by pulling it up (It snaps off).
  2. How To Replace Camshaft Position Sensor 2011-2017 Hyundai Elantra Step 1

  3. Remove the electrical plug.
  4. Remove the 10mm bolt.
  5. Pull the sensor out.


  7. Insert the new sensor.
  8. Tighten the 10mm bolt.
  9. Reattach the engine cover.

Replacing a camshaft position sensor is easy to do on a Hyundai Elantra.

The OBDII error codes P0016 or P0017 will be given when there is a problem.

Keep in mind other things can cause P0016 or P0017 error codes, such as bad wiring.

If the timing belt slips, the timing will be thrown off and can sometimes give P0016 or P0017 codes.

Have you had to replace the camshaft position sensor on a Hyundai Elantra? Let us know your thoughts in the comment below.

Category: General Automotive Repair

About Bob Thomas

Bob Thomas is an automotive mechanic with 30 plus years experience. He is a contributor to several publications and has written many articles on automotive maintenance and repairs. He also has created many auto repair videos on YouTube.

7 thoughts on “Replace Camshaft Position Sensor 2011-2017 Hyundai Elantra

    1. Don

      Sensor A is always on the Exhaust side and Sensor B is always on the Intake side.

  1. Jeff Murphy

    I like how the website is straightforward. I will attempt to try this instead of paying someone!

  2. Dani

    I have a elantra 2017 with code p0017, i put the timing belt slips and the sensors are new un the car, i cover all, the scan allwais saya p0017

    1. TRoseC

      Did you figure it out? Im having the same issue. Same car, 2017 Elantra. Let me know please, thanks

    2. TRoseC

      Did you figure it out? I did the timing chain, vvt solenoids, crankshaft sensor, camshaft sensor, . 2017 Elantra what else could it be?

  3. Santiago suriel

    Sobre el codigo p0017 me sale , tengo un elantta 2014 1.8 cual seria banco 1 sensor b? El sensor b es el que esta parte trasera del auto cierto el a , es el de enfrente ??????


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.