LTspice troubleshooting usually starts with an error message after pressing Run. The good news is that most problems trace back to a small set of causes: missing grounds, unrealistic ideal parts, wrong model paths and simulation settings that do not suit the circuit. This article explains each one and how to fix it.
Reading the Error Log First
When a simulation stops, LTspice offers to show the SPICE error log. Read it before changing anything. It names the node, component or file involved, which turns a frustrating guess into a focused fix and saves considerable time on larger designs.
The log also lists warnings that do not stop the run but may affect accuracy, such as nodes connected only through capacitors. Clearing those warnings makes later problems easier to spot because the log stays short and readable.
Quick Reference Table
| Symptom | Likely cause | First fix to try |
|---|---|---|
| Time step too small | Ideal parts or sharp edges | Add small series resistance, use realistic rise times |
| Singular matrix | Node without a DC path to ground | Add ground or a large resistor to ground |
| Unknown subcircuit | Model not found or name mismatch | Check .lib path and model name |
| Very slow run | Long stop time with tiny steps | Shorten the run or relax the maximum step |
| Jagged waveforms | Large steps or waveform compression | Set a maximum step or disable compression |
Time Step Too Small
This message means the solver kept shrinking its step without finding a stable answer. Circuits with ideal switches, voltage sources driving capacitors directly or inductors with no resistance are common culprits, because real components never change instantly.
- Add a few milliohms of series resistance to sources, capacitors and inductors.
- Give pulse sources realistic rise and fall times instead of zero.
- Replace ideal switches with models that include on and off resistance.
- Use manufacturer models rather than idealised placeholder parts.
Singular Matrix and Floating Nodes
A singular matrix error tells you the equations cannot be solved, usually because a node has no DC path to ground. A capacitor-only connection, a transformer winding left floating or a forgotten ground symbol will all trigger it.
Zoom in to confirm wires actually meet component pins, since a near miss looks connected but is not. For intentionally isolated nodes, add a very large resistor to ground, such as 1 gigaohm, which fixes the maths without changing circuit behaviour noticeably.
Missing Models and Unknown Subcircuits
Third-party parts need their model files referenced correctly. If the log reports an unknown subcircuit or a file that could not be opened, the simulator cannot find the model or the name inside the file differs from the name on the symbol.
- Keep model files in the same folder as the schematic.
- Reference them with
.lib filename.libor.include filename.sub. - Open the model file and copy the exact subcircuit name into the symbol value.
- Check the pin order of the subcircuit matches the symbol's pins.
Missing built-in parts
If an Analog Devices part is missing from the component browser, update components using the built-in option. Older installations, particularly legacy builds, may not include newer devices.
Slow Simulations
Switching regulators can take a long time when the stop time covers many switching cycles at small steps. Start with a shorter run to check start-up, then extend it once the circuit behaves. Saving only the nodes you need also reduces file size and run time.
Avoid very small maximum step values unless you need them for accuracy. Large .step sweeps multiply run time, so test with a few values before launching a full sweep across every tolerance corner.
Jagged or Distorted Waveforms
LTspice compresses waveform data by default to keep files small, which can make curves look angular. Adding .options plotwinsize=0 turns compression off, and setting a maximum time step in the .tran command forces smoother sampling.
.tran 0 5m 0 1u
.options plotwinsize=0
Installation and Platform Problems
Some issues are not about circuits at all. Installers that fail to start, missing libraries after an upgrade or display problems on Linux have their own fixes, covered in the Windows article and the Linux article.
Preventing Errors Before They Appear
Good schematic habits stop many errors from happening. Draw wires straight from pin to pin, label important nodes, add a ground early and keep ideal parts to a minimum. Starting with a manufacturer demo circuit and modifying it also avoids many convergence surprises.
- Build complex circuits in stages, simulating after each block is added.
- Use realistic component values with parasitic resistance where it matters.
- Keep each project's models in its own folder.
- Save working versions before experimenting so you can return to them.
Comparing Results with Expectations
A simulation that runs without errors can still be wrong. Check results against a quick hand calculation, such as an RC time constant or an amplifier's expected gain. Large differences point to a wrong value, an incorrect model or a mistaken unit suffix, such as M meaning milli rather than mega.
When to Simplify the Circuit
If a large design refuses to run, remove blocks until it simulates, then add them back one at a time. The block that brings the error back is where to focus. This approach turns a long, confusing error log into a short and manageable investigation, even in complex power designs.
Frequently Asked Questions
Why does my circuit work on one computer but not another?
Different LTspice versions or model libraries can change results. Update components on both machines and confirm the same model files are referenced.
Is it safe to add resistors just to fix convergence?
Small values that represent real parasitic resistance are realistic and normally do not change results meaningfully, while making the circuit solvable.
Where can I ask for help with a specific error?
The LTspice forum on Analog Devices EngineerZone is the main community for questions. Include the schematic and error log for faster answers.
Conclusion
LTspice troubleshooting becomes routine once you read the error log first and recognise the common patterns. Add realistic resistance, ensure every node reaches ground, reference models correctly and tune simulation settings to the circuit you are running.
Keep a personal checklist of fixes that worked, and revisit the beginner tutorial to practise clean schematic habits that prevent many errors before they appear.



