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.

The short answerCircuit simulation predicts voltages, currents, timing, and frequency response using a schematic, mathematical component models, and a numerical solver.

Original schematics · Step-by-step SPICE example · No registration required

Circuit schematic and resulting RC voltage waveform A resistor and capacitor network on the left connects visually to a rising voltage trace on the right.
One simple RC circuit connects the schematic, simulation model, and waveform.
By Turn2Engineering Editorial TeamUpdated

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.

1DrawConnect the schematic and ground node
2ModelAssign sources, loads and device models
3SolveSelect the analysis and run the solver
4VerifyCheck plots, limits and hardware assumptions

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.

Circuit analysisEquations and hand calculations to predict behavior.
Circuit simulationA numerical tool that solves those equations across many conditions.
Hardware validationMeasurements that test the model against physical reality.

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.

DC operating point · .op

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

AC small-signal · .ac

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

Transient · .tran

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

Other common analyses and when to use them
AnalysisUse it to answerWatch for
DC sweep (.dc)What happens as an input or source value changes?Sweep endpoints, step size and device nonlinearities.
Tolerance / Monte CarloHow much might results spread across component variation?Model distributions, correlation and worst-case conditions.
Noise analysisWhich devices contribute noise and over what bandwidth?Noise models, bandwidth and reference units.
Digital / mixed-signalDoes 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.

RC low-pass filter schematicA voltage source connected to resistor R1. The output node after R1 connects through capacitor C1 to ground and returns to the source. V1 R1 C1 Vout
One source, one series resistor, and one capacitor to ground. Vout is measured across the capacitor.

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.

Choose a simulation view
0.1–100 V
0.1–1,000 kΩ
0.1–100,000 nF
Time constant100 µsτ = R × C
Cutoff frequency1.59 kHzfc = 1 / (2πRC)
Vout after 1τ3.16 V63.2% of the step
Transient: capacitor chargingStep input from 0 V to 5 V
Analytical preview

Swipe horizontally to see the complete chart.

RC circuit charging waveformCapacitor voltage rises exponentially from zero toward the supply voltage over five time constants. 5 V2.50 02.5τ5τ Time
Vout Input level
An ideal 5 V step produces 3.16 V after 100 µs and approaches 5 V after five time constants.

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.

SPICE netlist · transient analysis
* 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.

1
Build or import the circuit

Use one voltage source, R1, C1 and node 0 (ground). Give the junction of R1 and C1 the name out.

2
Run the matching analysis

Choose .tran for the charging curve, .ac for the frequency response or .op for the settled DC value.

3
Probe V(out) and compare

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.

4
Make the model more realistic

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.

Beginner · Browser

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 simulator
SPICE · Free desktop

LTspice

Free schematic capture and analog/power circuit simulation with a waveform viewer and an extensive set of supported device models.

Official LTspice page
Schematic + PCB

KiCad + ngspice

Run DC, AC and transient simulations alongside schematic design; some real devices need models added or validated before simulation.

Read KiCad simulator docs
Open-source engine

ngspice

Use netlists directly or through a compatible schematic front end. The official manual documents analysis commands and numerical options.

Read ngspice documentation

For 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.

01

Check the reference and units

Confirm the node, ground reference and whether the axis is in volts, milliamps, microseconds, hertz, or decibels.

02

Check source and load

The wave shape depends on pulse timing, AC source amplitude, source impedance, and the actual load at the output.

03

Check the components

Plot device currents and power as well as voltage. A correct output can coexist with an overstressed resistor or semiconductor.

04

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

Time constantτ = RC10 kΩ × 10 nF = 100 µs
Transient responseVout(t) = Vs(1 − e−t/RC)Initially discharged capacitor, ideal step
−3 dB cutofffc = 1/(2πRC)For an unloaded first-order low-pass

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.

SymptomLikely reasonFirst useful fix
No ground / floating nodeNo unique voltage reference or missing DC current path.Add node 0, inspect connections, and check floating capacitor-only paths.
Convergence failureIdeal loops, discontinuous models, unstable bias, or inconsistent conditions.Simplify and check the model; include physically justified resistance or rise times.
Output is always zeroSource not driven, wrong probe, short, or analysis mismatch.Read the source definition; confirm a node label and correct analysis type.
Unexpected flat AC responseAC stimulus is missing or nonlinear bias is wrong.Set an AC source magnitude and review the operating point first.
Transient misses spikesMaximum timestep too large or waveform edge not modeled.Reduce maximum timestep and add realistic rise/fall times.
Result looks too perfectIdeal 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

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.

Scroll to Top