DIY EMI Filter: How to Build a Simple EMI Filter for Power Line Noise
For electronics enthusiasts, engineers, and makers, building a DIY EMI filter can be a useful project to understand how noise suppression works and to improve the performance of prototypes or hobby devices. However, while DIY filters can be effective for small projects, professional equipment often requires certified EMI filtering solutions such as those offered by DOREXS.

This article explains how EMI filters work, what components are required, and how you can build a simple DIY EMI filter while understanding its limitations.
Introduction to DIY EMI Filters
An EMI filter (Electromagnetic Interference filter) is an electrical circuit designed to suppress unwanted electromagnetic noise that travels through power lines or signal paths. These filters prevent interference from entering a device and also stop a device from injecting noise into the power system.
Generally, most electronic devices emit both common mode and differential mode interference, with one type usually being dominant.
Electronic systems today contain switching components such as MOSFETs, converters, and digital processors, all of which generate high-frequency electrical noise. Without proper filtering, this interference can lead to:
-
Signal instability
-
Data corruption
-
Reduced performance of nearby electronics
-
Failure to meet regulatory EMC standards
Conducted EMI occurs when electromagnetic noise is transmitted through power and signal lines, while radiated EMI occurs when electromagnetic noise is emitted into the air.
A DIY EMI filter is typically built using inductors, capacitors, and sometimes ferrite components to suppress unwanted high-frequency signals.
Common DIY EMI Filter applications
DIY EMI filters are frequently used in:
-
Audio amplifiers
-
DIY switching power supplies
-
Arduino or Raspberry Pi projects
-
Motor drivers and robotics
-
Laboratory test equipment
-
Power supply (PS) input and output filtering
While these filters can help reduce noise in experimental setups, industrial and commercial devices often rely on professional EMI filters manufactured by companies such as DOREXS to meet strict compliance standards.
A simple, effective DIY filter can be assembled using a pre-made noise filter module or by constructing a custom circuit.
Understanding EMI Noise Sources

Before building an EMI filter, it is important to understand the different types of interference.
For example, a common EMI noise source in a typical home or lab environment is the switching power supply found in many electronic devices, which can introduce high-frequency noise onto power lines.
To select the appropriate EMI filter, it is essential to determine whether the interference is conducted or radiated, and whether it is common mode or differential mode.
Conducted EMI
Conducted EMI travels through electrical wiring such as power cables or signal lines. This type of noise is especially common in switching power supplies and motor drives.
The effectiveness of an EMI filter is measured by its attenuation of unwanted signals at various frequencies.
Conducted EMI typically occurs within the frequency range of 150 kHz to 30 MHz, which is the range covered by many electromagnetic compatibility (EMC) standards.
A simple Pi filter can reduce RFI from a switching power supply by more than 20 dB, typically achieving 40 dB reduction at frequencies above 200 kHz.
Radiated EMI
Radiated EMI spreads through electromagnetic radiation in the air. This type of interference can be emitted by:
-
High-speed digital circuits
-
RF transmitters
-
High-frequency switching power supplies
A figure below illustrates how radiated EMI propagates through the air, showing the typical paths electromagnetic waves take from the source to nearby sensitive components.
Radiated EMI is usually addressed with shielding, PCB design improvements, and filtering.
Common Sources of EMI
Typical EMI sources include:
-
Switching power supplies
-
Electric motors and inverters
-
LED drivers
-
Industrial automation equipment
-
High-speed communication circuits
These sources create noise that propagates through two main paths: differential mode noise and common mode noise, which EMI filters are designed to suppress.
Further details on differential and common mode noise suppression, including design and measurement methods, will be discussed in later sections, and you can also review EMI filter basics and interference types for a broader conceptual overview.
Basic Components Needed for a DIY EMI Filter
A typical EMI filter consists of a combination of inductors and capacitors that work together to block high-frequency noise while allowing the normal power signal to pass through, which is the core principle of how an EMI filter works.

The process of building a DIY EMI filter involves carefully selecting quality components, assembling them according to the desired circuit design, and testing the finished filter to ensure optimal noise suppression and reliable performance.
X Capacitors
X capacitors are placed between line and neutral in AC power systems. Their main function is to suppress differential-mode noise traveling across the power line. X2 capacitors are commonly used in power supply EMI filters because they meet safety and flammability requirements.
Film capacitors are commonly used for X2 applications due to their high voltage ratings and reliability in mains voltage circuits, ensuring both safety and effective noise suppression. X2-Class Capacitors are typically 0.1µF to 0.47µF, rated for 250VAC or higher, and are placed between Line and Neutral.
Typical values range from 1 nF to 1 µF, depending on the application.
Y Capacitors
Y capacitors connect line or neutral to ground and are used to suppress common-mode interference. These capacitors must meet strict safety requirements because they connect directly to earth ground.
Y capacitors must be able to withstand high voltages for safety and reliability. Y-Class Capacitors are typically 2.2nF to 4.7nF, rated for 250VAC or higher, and are placed between Line-Ground and Neutral-Ground.
Typical values range from 1 pF to several nF.
Common Mode Chokes
The common mode choke is one of the most important components in an EMI filter.
The common mode choke is connected in series with the line and neutral wires, ensuring that all current flowing to the device passes through it. Common mode chokes are used in EMI filter circuits to suppress high-frequency noise from reaching connected devices.
It consists of two windings on a single magnetic core that allow normal current to pass while blocking common-mode noise. This works because differential currents cancel each other’s magnetic flux, while common-mode currents reinforce the magnetic field, creating high impedance to interference.
Ferrite Cores and Beads
Ferrite components absorb high-frequency noise and are often used in combination with inductors to suppress EMI. Ferrite beads are commonly inexpensive or even free when salvaged from old electronics, making them an accessible choice for DIY EMI filter projects.
Resistors
Resistors may be used to:
-
Discharge capacitors after power is disconnected
-
Dampen resonance in LC filter networks
Basic EMI Filter Circuit Diagram
A typical mains AC EMI filter uses a combination of capacitors and inductors arranged in a specific topology, similar to the structures used in AC EMI filter solutions for industrial equipment.
The standard EMI filter structure includes:
-
Y capacitors to ground
-
A common-mode choke
-
X capacitors between line and neutral
These elements work together to suppress both differential-mode and common-mode interference.
An EMI filter is based on a simple base circuit that can be designed by the user.
Simplified EMI Filter Structure
Line ----- CM Choke ----- Load
| |
X Y
| |
Neutral ----- Ground
How the circuit works
-
X capacitors short high-frequency differential noise between line and neutral.
-
Common mode chokes provide high impedance to common-mode interference.
-
Y capacitors route residual noise to ground.
This combination creates an LC low-pass filter, allowing low-frequency power to pass while blocking high-frequency interference.
Step-by-Step Guide to Building a DIY EMI Filter
An EMI filter can be built on a board (PCB) or as a standalone device, depending on your application needs. EMI filters can be embedded into printed circuit boards or function as standalone devices to protect sensitive equipment, and many of the same principles apply when designing and making EMI EMC power filters.

Building a simple EMI filter is relatively straightforward.
Step 1: Select the Components
You will need:
-
1 common-mode choke (1–10 mH typical)
-
1 X2 capacitor (0.1–0.47 µF)
-
2 Y capacitors (1–4.7 nF)
-
Optional bleeder resistors
-
Fuses: Fuses are essential for protecting the circuit by interrupting excessive current flow, helping to prevent damage and ensure safety.
When designing a DIY EMI filter, always consider the operating temperature, voltage, and current to ensure reliable and safe performance.
Step 2: Design the Filter Layout
When designing a PCB for a diy emi filter, practical layout considerations are crucial, especially for mains AC applications. Using a single layer board is recommended for safety and layout simplicity, making it easier to maintain proper noise suppression and compliance. Always include adequate safety clearances in the layout to ensure electrical safety and meet relevant standards.
A good PCB layout is essential for EMI performance. Poor layout can significantly reduce filtering effectiveness.
Design tips:
-
Keep input and output traces separated
-
Use a solid ground reference
-
Keep high-frequency loops short
Improper layout can turn a filter into an antenna that radiates noise instead of suppressing it.
Step 3: Install the Common Mode Choke
Place the choke in series with the line and neutral wires so that all incoming current passes through it.
Step 4: Connect X and Y Capacitors
-
Place the X capacitor across line and neutral
-
Connect Y capacitors from line and neutral to ground
Step 5: Test the Filter
You can evaluate filter performance using:
-
Oscilloscope
-
Spectrum analyzer
-
EMI test receiver
The filter's performance can also be evaluated by measuring insertion loss across frequency. To observe insertion loss, you can use a NanoVNA H4 to measure the S21 parameter and analyze the log magnitude, which shows how much signal is attenuated as it passes through the filter at different frequencies. Measuring insertion loss is a key method for evaluating EMI filter performance.
Testing may involve measuring conducted emissions before and after installing the filter.
Safety Considerations When Building EMI Filters
Working with AC power requires careful attention to safety.
Important precautions include:
-
Always disconnect power before handling or modifying circuits.
-
Use insulated tools and wear appropriate personal protective equipment.
-
Ensure all components are rated for the voltage and current in your application.
-
Double-check wiring and connections before powering up.
-
Make sure your workspace is dry and free from conductive materials.
-
Ensure all components are safety-rated for AC mains voltage and include a fuse in your EMI filter design to protect against overcurrent situations.
Proper design and testing of EMI filters not only enhance noise suppression but also contribute to compliance improvement with safety and EMC standards.
Use Safety-Rated Capacitors
Always use X and Y safety capacitors designed for AC mains filtering.
Ensure Proper Grounding
Improper grounding can cause both EMI issues and electrical hazards.
Discharge Capacitors
Bleeder resistors help discharge capacitors after unplugging the device to avoid electric shock.
Maintain Isolation
Ensure sufficient spacing and insulation when working with mains voltage.
Limitations of DIY EMI Filters
Although DIY EMI filters are useful for experimentation, they have several limitations. Professional EMI filter design often utilizes simulation software to optimize circuit topology and performance.
Lack of Compliance Certification
Commercial products must meet standards such as:
-
CE
-
FCC
-
CISPR
DIY filters are rarely tested to meet these requirements.
Limited Filtering Performance
DIY filters often lack:
-
Optimized component selection
-
Advanced multi-stage filtering
-
Proper shielding and layout
Testing Complexity
Professional EMI testing requires specialized equipment such as:
-
LISN (Line Impedance Stabilization Network)
-
EMI receivers
-
Shielded test environments
Without these tools, achieving regulatory compliance is difficult.
Troubleshooting EMI Filter Issues
Even with careful design and assembly, EMI filters can sometimes fall short of expectations in real-world applications. Troubleshooting these issues is essential to maintain efficient noise suppression and reliable operation of your electronic device or power supply, especially when dealing with switch mode power supplies (SMPS) or sensitive mains applications.
When to Use a Professional EMI Filter
In many applications, it is more practical to use a commercial EMI filter rather than designing one from scratch.
Professional EMI filters provide, especially in the form of high-performance EMI power filters:
-
Certified compliance with EMC standards
-
Optimized performance
-
Compact design
-
Reliable safety protection
Manufacturers like DOREXS specialize in designing high-performance EMI filters for demanding applications, acting as a full-service EMI filter and power quality manufacturer.
Typical product categories include:
-
Single-phase EMI filters
-
Three-phase EMI filters
-
DC EMI filters
-
Feedthrough EMI filters
-
IEC inlet EMI filters
These products are widely used in:
-
Medical equipment
-
Industrial automation systems that often rely on high-efficiency EMI solutions for automated industry
-
Telecommunications infrastructure
-
Renewable energy systems
-
Power electronics
By integrating professionally designed filters, engineers can significantly reduce development time and ensure compliance with international EMC standards.
Conclusion
A DIY EMI filter is a valuable learning project for engineers, students, and electronics hobbyists. A DIY Electromagnetic Interference (EMI) filter acts as a low-pass filter placed at the power entry point of electronic devices to block high-frequency noise while allowing 50/60Hz mains power to pass through. Differential Mode Noise is suppressed by X-class capacitors and inductors, while Common Mode Noise is blocked by Common Mode Chokes and Y-class capacitors. For effective shielding and grounding, always house your DIY EMI filter components in a grounded metal enclosure. For further learning, consider watching a video demonstration of EMI filter construction and testing, which often includes performance measurements and practical tips.
However, DIY filters have limitations in terms of reliability, safety, and regulatory compliance. For commercial products and industrial equipment, professionally engineered EMI filters are often required.
Companies like DOREXS provide a wide range of EMI filtering solutions designed for modern electronic systems. Whether you are prototyping a new circuit or developing certified equipment, choosing the right EMI filter is essential for ensuring electromagnetic compatibility and stable device operation.
What Is EMC? Electromagnetic Compatibility Explained
Aerospace EMI Filter: Design, Standards, and DOREXS Military-Grade Solutions