Coupons
Help
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:

A Practical Tutorial on Circuit Simulation with KiCad

Author : Alex Chen | PCB Design & High-Speed Engineering Specialist

November 25, 2026


KiCad is a powerful open-source EDA platform that supports schematic capture and PCB layout while also providing integrated circuit simulation. With its built-in ngspice simulation engine, engineers can verify circuit functionality and performance early in the design process, helping shorten development cycles and reduce costs.

KiCad circuit simulation workspace

This tutorial provides electronics engineers and enthusiasts with a practical introduction to the KiCad simulation workflow. A representative RC low-pass filter is used to demonstrate schematic preparation, SPICE model assignment, transient analysis, AC analysis, and waveform interpretation.

 

Simulation Fundamentals: An Introduction to SPICE

Before starting, it is useful to understand SPICE, which stands for Simulation Program with Integrated Circuit Emphasis. SPICE is a general-purpose, open-source circuit simulation program and one of the most widely used circuit-level simulation technologies in electronic design automation. KiCad integrates ngspice, a branch of the SPICE simulation ecosystem.

The core of circuit simulation is the SPICE model. Each electronic component, such as a resistor, capacitor, transistor, or operational amplifier, requires a corresponding SPICE model. A model is typically a text-based description that uses mathematical relationships to represent the component's electrical behavior. For accurate simulation, every component in the schematic must be associated with an appropriate SPICE model.

SPICE model configuration in KiCad

 

Overview of the KiCad Simulation Workflow

The basic KiCad circuit simulation workflow consists of the following steps:

  1. Draw the schematic: Use KiCad's schematic editor to create the circuit to be simulated.
  2. Assign SPICE models: Specify a suitable SPICE model for every component in the schematic.
  3. Configure excitation sources: Add voltage or current sources to provide the circuit input signal.
  4. Select the simulation type: Choose an analysis type, such as transient analysis, AC analysis, or DC sweep.
  5. Run the simulation: Start the simulator and generate the circuit response.
  6. Analyze the waveforms: Use the waveform viewer to inspect voltages, currents, and other simulation results.

Common passive components, including resistors and capacitors, usually include built-in SPICE models. Their parameter values can often be defined directly by editing the component's Value field. The built-in model can also be modified through the component properties dialog by selecting Simulation Model, or a custom SPICE model can be assigned.

In the symbol chooser, searching for simulation provides access to symbols that already include SPICE models.

Voltage and current sources act as excitation sources for the circuit. Their waveform type, amplitude, offset, and frequency must be configured according to the intended analysis.

The simulation interface can be opened from the schematic editor menu or toolbar.

After opening the simulator, create a simulation analysis tab and select the desired analysis type.

 

Example: Simulating an RC Low-Pass Filter

A classic RC low-pass filter provides a simple example for demonstrating the KiCad simulation process. It is one of the simplest and most common filter circuits.

RC low-pass filter schematic for KiCad simulation

Circuit parameters:

  • Resistor R1: 1 kΩ
  • Capacitor C1: 1 μF
  • Input signal: a 50 Hz sine wave with a peak amplitude of 1 V

Expected result:

The cutoff frequency of the filter is calculated as:

fc = 1/(2πRC) = 1/(2π × 1000 × 1 × 10-6) ≈ 159.15 Hz

Because the input frequency of 50 Hz is below the cutoff frequency, the input signal should pass with relatively little attenuation. When the input frequency is significantly higher than the cutoff frequency, the signal should be strongly attenuated.

Step 1: Create a Project and Draw the Schematic

  1. Open KiCad and create a new project named RC_Filter_Simulation.
  2. Open the schematic editor.
  3. Use the Add Symbol button, or press the A hotkey, to add the following components from the Simulation_SPICE library and the standard libraries:
    • VSIN — sine-wave voltage source
    • R — resistor
    • C — capacitor
    • GND — ground
  4. Connect the components according to the circuit diagram. Use Add Net Label, or press the L hotkey, to label the input and output nodes as V_IN and V_OUT. These labels make the signals easier to identify during waveform analysis.
  5. Set the component values:
    • Double-click the resistor R and set its value to 1k.
    • Double-click the capacitor C and set its value to 1u.

The schematic is now ready for simulation.

Step 2: Configure the Excitation Source and Assign Models

  1. Configure the excitation source: Double-click the VSIN symbol to open its properties. Select the Simulation Model button and set the following parameters in the model editor:
    • DC offset: 0
    • Amplitude: 1 V
    • Frequency: 50 Hz
    • AC magnitude: 1 V, used for AC analysis
  2. Assign component models:
    • For resistors and capacitors, the R and C symbols in KiCad's default pspice library generally include basic SPICE models and require no additional configuration.
    • For more complex components, such as transistors and operational amplifiers, double-click the component, open Simulation Model, select the Model tab, and load a vendor-provided .lib or .subckt model file. This step is not required for the RC filter example.

Step 3: Configure and Run the Simulation

  1. In the schematic editor's top menu, select Inspect → Simulator.
  2. The circuit simulator window opens. Click the Settings button, represented by a gear icon, or select Simulation → New Analysis Tab to open the simulation parameter settings.
  3. Perform transient analysis: Transient analysis shows the circuit's time-domain response over a specified interval, similar to observing the circuit with an oscilloscope.
    • Select Tran, or transient analysis, under the analysis type.
    • Set the Step Time. For example, 1u, or 1 μs, defines the simulation time-step resolution.
    • Set the Final Time. A 50 Hz signal has a period of 20 ms. To observe five periods, use a total simulation time of 100 ms and enter 100m.
    • Click OK.
  1. Select the signals to observe: In the signal list on the right side of the simulator, select the signals to display. The schematic net labels can be used to locate the signals. Select both V_IN and V_OUT, and assign display colors as needed.
  2. Run the simulation: Click the Run Simulation button, represented by a blue triangle in the upper-left corner of the simulator window.

Step 4: Analyze the Simulation Results

After the simulation completes, the waveform viewer displays the voltage waveforms for V_IN and V_OUT.

Result analysis:

  • The green input signal, V(V_IN), is a sine wave with a peak amplitude of 1 V.
  • The purple output signal, V(V_OUT), is also sinusoidal, but its amplitude is slightly lower and its phase is delayed relative to the input. This behavior is consistent with the passband response of an RC low-pass filter.

 

Advanced Simulation: AC Analysis

Transient analysis shows the response at a particular input frequency. To understand the filter's performance across a range of frequencies, use AC analysis, also known as frequency-sweep analysis.

Step 1: Configure AC Analysis

  1. Return to the simulator settings window.
  2. Select AC under the analysis type.
  3. Configure the sweep parameters:
    • Sweep type: Decade
    • Points per decade: 100. More points produce a smoother curve.
    • Start frequency: 1 Hz
    • Stop frequency: 10 kHz
  4. Click OK and run the simulation again.

Step 2: Analyze the Frequency Response

After the simulation finishes, the waveform viewer displays the filter's Bode plot.

Result analysis:

  • Magnitude response: In the low-frequency region, below approximately 100 Hz, the gain is close to 0 dB, indicating that the signal passes with very little attenuation. As frequency increases, the gain begins to decrease. Near the previously calculated cutoff frequency of 159 Hz, the gain is approximately -3 dB. At higher frequencies, the gain decreases at a slope of -20 dB per decade.
  • Phase response: The output phase shifts relative to the input phase. At the cutoff frequency, the phase shift is -45°.

The AC simulation verifies the expected frequency-response characteristics of the RC low-pass filter.

 

Common Simulation Problems and Practical Tips

“No SPICE Model Found”

  • Cause: One or more components in the schematic are not associated with a SPICE model.
  • Solution: Double-click the component, open the Simulation Model dialog, and manually assign a valid SPICE model file.

Simulation Does Not Converge

  • Cause: The circuit may contain a design problem, such as a floating node, or the simulation parameters may be unsuitable.
  • Solution: Check all schematic connections and verify that the circuit has a correct ground reference. In the transient-analysis settings, try changing the integration method from trap, the trapezoidal method, to gear.

Obtaining SPICE Models

Many semiconductor vendors provide PSpice or SPICE models for their devices. These models are commonly distributed as .lib or .mdl files. After downloading an appropriate model, it can be imported into KiCad and associated with the corresponding schematic symbol.

 

Conclusion

KiCad's integrated simulation capabilities provide a practical way to verify circuit behavior before PCB implementation. The essential workflow includes drawing the schematic, configuring component models, defining excitation sources, running transient or AC analysis, and interpreting the resulting waveforms.

The RC low-pass filter example demonstrates how theoretical calculations can be compared with simulation results. Transient analysis shows the time-domain waveform at a selected frequency, while AC analysis reveals the complete magnitude and phase response across a frequency range. The same workflow can be extended to more complex circuits, including operational-amplifier circuits, transistor amplifiers, and power circuits.

As circuit complexity increases, accurate SPICE models, correct grounding, complete schematic connections, and suitable simulation settings become increasingly important. Continued practice with model parameters and SPICE syntax helps engineers understand circuit behavior more thoroughly and develop more stable and reliable electronic designs.

Alex Chen | PCB Design & High-Speed Engineering Specialist Alex Chen | PCB Design & High-Speed Engineering Specialist

Alex Chen is a senior PCB design engineer with extensive experience in high-speed and high-density circuit design. He specializes in signal integrity, impedance control, and multilayer PCB layout optimization. At AIVON, he reviews and refines content related to PCB design principles, EDA tools, and advanced layout techniques. His expertise helps engineers avoid common design pitfalls and improve performance, reliability, and manufacturability in complex PCB projects.

Related Tags


2026 AIVON.COM All Rights Reserved
Intellectual Property Rights | Terms of Service | Privacy Policy | Refund Policy