Electronics engineering · Practical SPICE guide
Circuit Simulation From Schematic to Waveform
Learn to simulate electronic circuits, choose the right DC, AC, or transient analysis, and interpret the results. Explore a live RC circuit, then take its SPICE netlist into a real simulator.
Original schematics · Step-by-step SPICE example · No registration required
Jump to a section
01 / Fundamentals
What Is Circuit Simulation?
Circuit simulation uses software to predict a circuit’s electrical behavior before physical construction. You provide connected components, sources, values, models, and an analysis request; the simulator calculates an operating point or response.
A simulator can reveal whether an amplifier clips, a divider is loaded, a capacitor charges quickly enough, or a resistor dissipates too much power. It can also give a convincing but incorrect result when the schematic is missing a load or a device uses an unsuitable model.
02 / Method selection
Which Type of Circuit Simulation Do You Need?
Pick the method from the question—not from the graph you hope to see. These are different analyses, not interchangeable ways to obtain the same result.
Where does the circuit settle?
Calculates steady voltages, currents, and active-device bias. Start here for transistor bias, supply levels, and amplifier headroom.
Output: node and branch values
How does gain change with frequency?
Linearizes around the bias point and sweeps frequency. Use for filter cutoff, gain, phase, and bandwidth—not startup behavior.
Output: gain and phase versus Hz
What happens over time?
Solves waveforms during startup, charging, pulses, or switching. Check the stop time, rise time, and maximum timestep.
Output: voltages and currents versus time
| Analysis | Use it to answer | Watch for |
|---|---|---|
| DC sweep (.dc) | What happens as an input or source value changes? | Sweep endpoints, step size and device nonlinearities. |
| Tolerance / Monte Carlo | How much might results spread across component variation? | Model distributions, correlation and worst-case conditions. |
| Noise analysis | Which devices contribute noise and over what bandwidth? | Noise models, bandwidth and reference units. |
| Digital / mixed-signal | Does logic meet functional or timing requirements? | Logic delays, analog thresholds and interface behavior. |
Important: a SPICE AC sweep normally linearizes a nonlinear circuit around its DC operating point. It does not show the actual time waveform of a switched circuit.
03 / Hands-on learning lab
Try Circuit Simulation: RC Low-Pass Filter
Change the component values, select a type of analysis, and see the expected voltage response. This is an analytical model for this one ideal RC circuit, not a general-purpose SPICE solver.
What you should observe
Transient: Vout rises toward the input voltage. After one time constant, it reaches about 63.2% of the final value.
AC: low frequencies pass; high frequencies are attenuated. The ideal cutoff is −3.01 dB.
DC: after the capacitor is fully charged, an ideal steady-state circuit has no resistor current.
Swipe horizontally to see the complete chart.
At one time constant (100 µs), Vout reaches approximately 63.2% of 5 V. The graph is an ideal step-response model; it does not include capacitor ESR, leakage, or source impedance.
04 / Make it real
Copy an RC SPICE Netlist and Run It
The example below changes with the lab values and selected analysis. Copy the text into a `.cir` netlist supported by a SPICE simulator, run it, then probe V(out). Syntax and graphical steps vary slightly by tool.
* RC low-pass: 5 V step, 10k resistor, 10n capacitor
V1 in 0 PULSE(0 5 0 1n 1n 1m 2m)
R1 in out 10k
C1 out 0 10n
.tran 2.5u 500u
.end
Long SPICE lines can be scrolled sideways; Copy captures the entire netlist.
Use one voltage source, R1, C1 and node 0 (ground). Give the junction of R1 and C1 the name out.
Choose .tran for the charging curve, .ac for the frequency response or .op for the settled DC value.
The default time constant is 100 µs. A step reaches about 3.16 V at 100 µs; the AC cutoff is about 1.59 kHz.
Add load resistance, source impedance, component tolerances, and a relevant capacitor model when those effects matter.
05 / Software selection
Circuit Simulation Software: Where Should You Start?
Readers searching for a “circuit simulator” often want software they can use immediately. These are grounded starting points; the best choice depends on whether you want a visual learning tool, a SPICE model, or a PCB-connected workflow.
Falstad Circuit Simulator
Interactive visual circuit behavior with animated current and ready-made examples. Great for learning, but simplified models are not production validation.
Open the simulatorLTspice
Free schematic capture and analog/power circuit simulation with a waveform viewer and an extensive set of supported device models.
Official LTspice pageKiCad + ngspice
Run DC, AC and transient simulations alongside schematic design; some real devices need models added or validated before simulation.
Read KiCad simulator docsngspice
Use netlists directly or through a compatible schematic front end. The official manual documents analysis commands and numerical options.
Read ngspice documentationFor digital logic or microcontroller behavior, a logic/HDL or mixed-signal simulator may be more appropriate than a purely analog SPICE workflow. For fast PCB signals, dedicated signal-integrity modeling may also be needed.
06 / Interpreting outputs
How to Read Simulation Results Without Being Misled
A graph is evidence about the model—not proof of hardware performance. Use these checks to turn a plot into a useful engineering decision.
Check the reference and units
Confirm the node, ground reference and whether the axis is in volts, milliamps, microseconds, hertz, or decibels.
Check source and load
The wave shape depends on pulse timing, AC source amplitude, source impedance, and the actual load at the output.
Check the components
Plot device currents and power as well as voltage. A correct output can coexist with an overstressed resistor or semiconductor.
Check solver resolution
A coarse transient timestep can miss narrow pulses or fast switching edges. A narrow AC frequency range can hide the cutoff or resonance.
Independent checks for the RC example
07 / Troubleshooting
Why Won’t My Circuit Simulation Work?
Start with connectivity and assumptions before changing numerical tolerances. These are common causes of SPICE errors or misleading outputs.
| Symptom | Likely reason | First useful fix |
|---|---|---|
| No ground / floating node | No unique voltage reference or missing DC current path. | Add node 0, inspect connections, and check floating capacitor-only paths. |
| Convergence failure | Ideal loops, discontinuous models, unstable bias, or inconsistent conditions. | Simplify and check the model; include physically justified resistance or rise times. |
| Output is always zero | Source not driven, wrong probe, short, or analysis mismatch. | Read the source definition; confirm a node label and correct analysis type. |
| Unexpected flat AC response | AC stimulus is missing or nonlinear bias is wrong. | Set an AC source magnitude and review the operating point first. |
| Transient misses spikes | Maximum timestep too large or waveform edge not modeled. | Reduce maximum timestep and add realistic rise/fall times. |
| Result looks too perfect | Ideal parts, no source resistance, no loading or thermal effects. | Apply the actual part model and relevant parasitics; compare with measurement. |
08 / Engineering reality
Circuit Simulation vs Real Hardware: What Changes?
Simulation is most useful as one link in the chain: hand estimate → schematic simulation → prototype → measurement. No amount of chart polish compensates for a missing physical effect.
Ideal schematic model
- Exact resistance and capacitance
- Ideal voltage source and wires
- No extra coupling or leakage
- Stable conditions and perfect connections
Real PCB or breadboard
- Tolerances, temperature drift, and aging
- Source limits, ESR, ESL and layout parasitics
- Noise, grounding and measurement loading
- Package, thermal and manufacturing constraints
For high-speed digital interfaces, RF, switching regulators, and precision analog front ends, schematic-level SPICE alone may omit layout, electromagnetic, and thermal behavior that determines whether the finished product works. Use an appropriate model and check the limits of the validation method.
Technical references and further learning
- MIT — Introduction to SPICE Simulation — a practical educational introduction to operating point, AC, and transient analyses.
- ngspice — Official documentation — analysis commands, source syntax, numerical controls, and model guidance.
- KiCad — Integrated simulator documentation — an example of schematic-connected SPICE simulation.
- Analog Devices — LTspice — official downloads, model information, and tutorials.
09 / Quick answers
Circuit Simulation FAQ
What is the easiest way to simulate a circuit?
Start with a simple visual simulator such as Falstad to explore behavior. To obtain detailed SPICE results, use LTspice or a KiCad/ngspice workflow, include a ground and load, and start with a small circuit you can check by hand.
What is SPICE in circuit simulation?
SPICE stands for Simulation Program with Integrated Circuit Emphasis. It is a family of numerical circuit solvers used to calculate nonlinear DC operating points, small-signal AC frequency response, and time-domain transients from circuit models and connectivity.
What is the difference between AC and transient analysis?
AC analysis computes small-signal gain and phase over frequency near a DC bias point. Transient analysis computes changing voltages and currents in time and is used for startup, steps, pulses, and nonlinear switching behavior.
Is this page a full circuit simulator?
No. The on-page lab is an analytical preview of one ideal RC network and generates SPICE input for external simulation. It does not solve arbitrary schematics, transistor models, or full PCB effects.
Can simulation replace building a prototype?
No. Simulation can shorten design cycles and find errors early, but a physical prototype is needed to validate effects such as tolerance, noise, PCB layout, heat, real component models, and measurement loading.
Why do I get a convergence error?
Common causes include missing DC paths, floating nodes, ideal voltage-source loops, inconsistent device parameters, abrupt discontinuities, and unsuitable initial conditions. Check connectivity and physics before changing solver settings.