Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All Articles →
🎬 Helpful Videos 🛍️ Shop This Part

1999-2000 Hyundai Elantra ECM: Federal Emissions, Part Numbers, and Programming Facts

This guide covers the critical details you must know before replacing the Engine Control Module (ECM) in your 1999-2000 Hyundai Elantra, including the crucial emissions compatibility trap.

5 minutes to read 1999-2000 Hyundai Elantra
Difficulty
2/5
Est. Time
0.5 hrs
DIY Doable?
✅ Yes
Shop Labor
$100 - $150
Used OEM Price
$50 - $150
🚫 Do not drive — No, it is not safe to drive with a failing ECM due to the high risk of the engine stalling in traffic, which could cause a crash.
Key Takeaways
  • You MUST match the ECM to your vehicle's emissions system: Federal (EPA) or California (CARB). Part numbers 39150-23951 and 39150-23950 are for Federal emissions only.
  • The ECM must be programmed with your car's VIN. Buying a used ECM from a junkyard is not plug-and-play and is not recommended.
  • The safest and most cost-effective option is a remanufactured ECM that is pre-programmed to your VIN by the seller.
  • Engine stalling can also be caused by a faulty Mass Air Flow (MAF) sensor connector, which was subject to a recall for these models.
The Engine Control Module (ECM), also known as the Engine Control Unit (ECU), is the central computer of your 1999-2000 Hyundai Elantra. It acts as the engine's brain, receiving data from sensors all over the vehicle, such as the oxygen sensor, crankshaft position sensor, and mass airflow sensor. Using this information, it makes millions of calculations per second to control the fuel injectors, ignition timing, and idle speed. A properly functioning ECM is essential for engine performance, fuel economy, and emissions control.

Critical Compatibility Warning: Federal vs. California Emissions

Warning: This is the most important factor when replacing the ECM in a 1999-2000 Hyundai Elantra. You MUST match the new module to your vehicle's original emissions system. The two systems are not interchangeable.

The OEM part numbers 39150-23951 and its predecessor 39150-23950 are for vehicles with Federal (EPA) or Canada emissions ONLY. They will NOT work in a vehicle originally built to meet California (CARB) emissions standards. California-spec vehicles use different part numbers, such as 39150-23956.

How to Identify Your Vehicle's Emissions System

To determine if your Elantra is a Federal or California emissions model, look for the Vehicle Emission Control Information (VECI) sticker under the hood. It is typically a white sticker located on the underside of the hood, on the radiator support, or on a strut tower.

  • A Federal Emissions vehicle's sticker will state that it conforms to "U.S. EPA regulations."
  • A California Emissions vehicle's sticker will mention conformity to "California regulations" or "CARB."

Failure to match the ECM to your vehicle's emissions system will result in a check engine light and performance issues.

Symptoms of a Failing Elantra ECM

A failing ECM can cause a wide range of problems, as it controls nearly every aspect of engine operation. Symptoms can be intermittent at first and worsen over time.

🎬 Watch: 11 common symptoms of a failing engine control module.
  • Check Engine Light: This is often the first sign. Codes may point to specific sensors, but if multiple, unrelated sensor codes appear at once, it could indicate a faulty ECM.
  • Engine Will Not Start: The engine may crank but fail to start because the ECM is not commanding the fuel injectors or spark plugs to fire.
  • Stalling or Misfiring: The engine may stall unexpectedly, run rough, or misfire because of incorrect fuel and spark calculations.
  • Poor Performance and Fuel Economy: You may notice a sudden drop in power, hesitation during acceleration, or a significant decrease in gas mileage.
  • Erratic Shifting (Automatic Transmission): The ECM communicates with the transmission control module, and a fault can lead to harsh or unpredictable shifting.

Pro Tip: Before condemning your ECM for stalling issues, investigate the Mass Air Flow (MAF) sensor. A recall was issued for 1999-2000 Elantras where a poor connection at the MAF sensor could cause intermittent stalling at low speeds. This can easily be mistaken for an ECM problem.

🎬 See how a faulty MAF sensor causes stalling without codes.

Programming and Immobilizer Requirements

For the 1999-2000 Hyundai Elantra, the ECM is linked to the vehicle's identity and security system. It is not a simple plug-and-play part if sourced directly from another vehicle.

VIN Programming is Required

When a new or replacement ECM is installed, it must be programmed with your car's 17-digit Vehicle Identification Number (VIN). If the VIN is not written to the module, the vehicle will set a Diagnostic Trouble Code (DTC) P0630 - VIN Not Programmed or Mismatch in ECM/PCM, and the check engine light will illuminate. According to Hyundai service information, once a VIN is programmed into an ECM, it cannot be changed or overwritten. This means an ECM from a junkyard vehicle will have the wrong VIN and will not work correctly in your car without specialized tools to 'virginize' and reprogram it.

Immobilizer System

These vehicles may be equipped with an anti-theft immobilizer system that prevents the engine from starting without a recognized key. This system is tied to the ECM. When you purchase a properly refurbished ECM, the vendor typically programs your VIN, which syncs the module to your existing keys, making the installation plug-and-play. If this is not done, a visit to a dealer or a locksmith with advanced tools would be required to sync the keys to the replacement ECM.

Buying a Used 1999-2000 Elantra ECM

Given the programming requirements, buying a used ECM requires careful consideration.

  1. Verify the Part Number: Double-check that the part number on the used module matches your original. For Federal emissions, look for 39150-23951 or 39150-23950.
  2. Confirm Emissions Compatibility: Ensure the donor vehicle had the same emissions system (Federal or California) as yours.
  3. Buy From a Reputable Remanufacturer: The safest option is to purchase a remanufactured ECM from a company that offers VIN programming. You provide them with your VIN, and they pre-program the module so it arrives ready for a plug-and-play installation without any extra dealer visits.
  4. Physical Inspection: When the part arrives, inspect the case for any signs of damage or corrosion. Check the connector pins to ensure they are straight and clean. Avoid any units that look like they have been opened or tampered with.

Warning: Purchasing a used ECM from a private seller or a 'you-pull-it' salvage yard is not recommended unless you have access to professional-level diagnostic tools to perform the VIN programming and key relearn procedures.

Cost Comparison

Part TypeEstimated CostNotes
New OEM$1,000 - $1,500Extremely expensive and may require dealer programming.
Remanufactured (Pre-Programmed)$250 - $400The recommended option. Arrives plug-and-play with your VIN.
Used OEM (Salvage Yard)$50 - $150Not recommended. Will require costly programming to work.
Shop Labor for Installation & Programming$150 - $300Physical installation is simple (about 1 hour), but programming adds cost if not bought pre-programmed.

Frequently Asked Questions (FAQ)

Does a 1999-2000 Elantra ECM need to be programmed?

Yes. The replacement ECM must be programmed with your vehicle's VIN to function correctly and avoid a P0630 trouble code. The best way to handle this is to buy a remanufactured unit that is pre-programmed by the seller.

How do I know if my Elantra has Federal or California emissions?

Check the Vehicle Emission Control Information (VECI) sticker under your hood. If it mentions conforming to "California" or "CARB" regulations, it's a California emissions vehicle. If it only mentions "U.S. EPA," it's a Federal emissions vehicle.

Can I use an ECM from a junkyard?

It is not recommended. An ECM from another car will have the wrong VIN programmed into it, which cannot be easily changed. This will cause a check engine light and may prevent the car from running correctly due to immobilizer conflicts.

Where is the ECM located on a 1999-2000 Elantra?

The ECM is typically located inside the vehicle, on the driver's side of the dashboard (LH dash). Some sources also indicate it may be in the engine bay mounted to the air cleaner assembly. Always confirm the location on your specific vehicle before beginning work.

🎬 Watch this walkthrough on how to replace a Hyundai ECU.
7 Symptoms of a Bad ECM (Engine Control Module)
7 Symptoms of a Bad ECM (Engine Control Module)
Symptoms of a Bad ECM (Engine Control Module Failure)
Symptoms of a Bad ECM (Engine Control Module Failure)
6 Signs of a bad ECM | Learn the warnings and know when it's time for a replacement
6 Signs of a bad ECM | Learn the warnings and know when it's time for a replacement
11 SYMPTOMS OF A BAD ECM (ENGINE CONTROL MODULE)
11 SYMPTOMS OF A BAD ECM (ENGINE CONTROL MODULE)
6 Symptoms Of A Bad ECM or ECU (and Replacement Cost !)
6 Symptoms Of A Bad ECM or ECU (and Replacement Cost !)
Why This Hyundai Elantra Won't Start
Why This Hyundai Elantra Won't Start
Hyundai Elantra Sport How to Replace Ecu
Hyundai Elantra Sport How to Replace Ecu
"Hyundai Elantra Engine Stalling: No Check Engine Light? Discover the Surprising Culprit!"
"Hyundai Elantra Engine Stalling: No Check Engine Light? Discover the Surprising Culprit!"
Hyundai Elantra Come Back - Stalling and Rattle noise
Hyundai Elantra Come Back - Stalling and Rattle noise
Hyundai elantra stalling
Hyundai elantra stalling

Technical Specifications

OEM Part Numbers: 39150-23951 39150-23950

Fits 1999-2000 Hyundai Elantra with 2.0L engine and Federal/Canada emissions ONLY.

We Have This Part in Stock

Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Apr 19, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the Engine Control Module (ECM) for:
  • Hyundai Elantra: 19992000
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part