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.

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.

Overview of the KiCad Simulation Workflow
The basic KiCad circuit simulation workflow consists of the following steps:
- Draw the schematic: Use KiCad's schematic editor to create the circuit to be simulated.
- Assign SPICE models: Specify a suitable SPICE model for every component in the schematic.
- Configure excitation sources: Add voltage or current sources to provide the circuit input signal.
- Select the simulation type: Choose an analysis type, such as transient analysis, AC analysis, or DC sweep.
- Run the simulation: Start the simulator and generate the circuit response.
- 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.

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
- Open KiCad and create a new project named
RC_Filter_Simulation. - Open the schematic editor.
- Use the
Add Symbolbutton, or press theAhotkey, to add the following components from theSimulation_SPICElibrary and the standard libraries:VSIN— sine-wave voltage sourceR— resistorC— capacitorGND— ground
- Connect the components according to the circuit diagram. Use
Add Net Label, or press theLhotkey, to label the input and output nodes asV_INandV_OUT. These labels make the signals easier to identify during waveform analysis. - Set the component values:
- Double-click the resistor
Rand set its value to1k. - Double-click the capacitor
Cand set its value to1u.
- Double-click the resistor
The schematic is now ready for simulation.
Step 2: Configure the Excitation Source and Assign Models
- Configure the excitation source: Double-click the
VSINsymbol to open its properties. Select theSimulation Modelbutton 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
- Assign component models:
- For resistors and capacitors, the
RandCsymbols in KiCad's defaultpspicelibrary 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 theModeltab, and load a vendor-provided.libor.subcktmodel file. This step is not required for the RC filter example.
- For resistors and capacitors, the
Step 3: Configure and Run the Simulation
- In the schematic editor's top menu, select
Inspect→Simulator. - The circuit simulator window opens. Click the
Settingsbutton, represented by a gear icon, or selectSimulation→New Analysis Tabto open the simulation parameter settings. - 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 enter100m. - Click
OK.
- Select
- 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_INandV_OUT, and assign display colors as needed. - Run the simulation: Click the
Run Simulationbutton, 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
- Return to the simulator settings window.
- Select
ACunder the analysis type. - 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
- Sweep type:
- Click
OKand 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 Modeldialog, 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, togear.
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.