ngspice
ngspice.sourceforge.io
- Free plan
- Windows
- macOS
- Linux
- Self-hosted
What ngspice is
ngspice is a free, open-source simulator for electric and electronic circuits. It simulates analog, digital and mixed-signal circuits described in netlists, using models for active, passive, analog and digital elements. Model parameters can come from collections, manufacturers or foundries. Its SPICE compatibility supports PSPICE or LTSPICE device model parameters and netlists for discrete circuits.
For mixed-signal co-simulation, ngspice supports Verilog blocks compiled with Verilator and, since ngspice-44, VHDL blocks using GHDL. Its OSDI/OpenVAF interface integrates Verilog-A compact device models without requiring programming on the ngspice side. It can also be compiled as a shared library or DLL for control by another application. Listed integrations include KiCad, Autodesk Fusion and Python interfaces such as PySpice.
ngspice runs on Linux, macOS and Windows, and can be self-hosted. It has no schematic entry: input is command-line or file-based. The stable download page offers source archives and Windows binaries; Linux users are directed to their distributor or to compile from source, while the project's own macOS release is currently unavailable there.
Who it suits
ngspice suits people working with circuit netlists who need analog, digital or mixed-signal simulation. Its library and DLL options may also suit developers integrating simulation into another application.
Good to know, and what to watch
- Free and open source.
- Supports analog, digital and mixed-signal circuits.
- SPICE-compatible with PSPICE or LTSPICE model parameters.
- Can be compiled as a library or DLL.
- Integrates with KiCad, Autodesk Fusion and Python interfaces.
- Does not provide schematic entry.
- Input is command-line or file-based.
- The project's own macOS release is currently unavailable on its stable download page.
Plans
Every plan and pricengspice
Free plan
Getting started
- Open the ngspice website
- Choose a stable source archive or Windows binary
- On Linux, use your distributor package or compile from source
- Prepare a circuit as a netlist
- Run the simulator from the command line or a calling application
- Connect listed integrations such as KiCad, Autodesk Fusion, or PySpice
Limits to check
ngspice has no schematic entry, so circuits must be supplied through command-line or file-based input. The stable download page does not provide the project’s own macOS release.
The Club's review
ngspice is a free, open-source SPICE simulator for analog, digital, and mixed-signal electronics. It is aimed at engineers, educators, developers, and technically minded teams who can express circuits in netlists or input files. The central choice is capability and model compatibility over a visual schematic workflow.
Overview
ngspice covers electric and electronic circuit simulation with a netlist-driven approach. That makes it a strong fit for repeatable, scriptable analysis and for projects that already have SPICE descriptions, but a weak fit for beginners who expect to draw a circuit before simulating it. Its open-source distribution removes licensing cost, while the command-line and file-based workflow places more responsibility on the user to create and maintain valid circuit descriptions.
Key features
The simulator handles analog, digital, and mixed-signal circuits and includes models for active, passive, analog, and digital components. Parameters can come from model collections, manufacturers, and foundries, and PSPICE or LTSPICE device-model parameters and discrete-circuit netlists can be used. In practice, that compatibility can preserve existing model investments and ease migration between SPICE-based workflows.
Mixed-signal work can combine Verilog blocks compiled with Verilator; VHDL blocks are supported through GHDL from ngspice-44 onward. The OSDI/OpenVAF interface brings in Verilog-A compact device models without requiring programming within ngspice itself. These are meaningful advantages for teams combining circuit simulation with hardware-description-language models, although they add toolchain choices that are unnecessary for simple analog studies.
ngspice can be built as a shared library or DLL and controlled by a calling application. That enables custom engineering tools and automated analysis rather than restricting use to an interactive simulator. Listed integrations include KiCad, Autodesk Fusion, and Python interfaces such as PySpice, giving users routes to a broader design or scripting environment while keeping ngspice as the simulation engine.
Pricing
ngspice — free (billed Free) includes the circuit simulator, command-line or file-based input, advanced electrical simulation, and standards libraries. There is no paid tier or seat charge in this plan. The trade-off is structural rather than financial: schematic capture is not included, so users wanting a visual editor must pair ngspice with another application or choose a different product.
Platforms
ngspice runs on Linux, macOS, Windows, and self-hosted deployments. The stable download page provides source archives and Windows binaries. Linux users are directed to their distributor or to compiling from source, while the project's own macOS release is currently unavailable on that page; installation planning therefore differs by operating system.
Support resources include mailing lists, discussion forums, a bug tracker, an FAQ, and documentation. That gives experienced users several channels for resolving setup and modeling questions, but it is a community-and-documentation model rather than a paid support commitment.
Who it's for
Choose ngspice when you need no-cost SPICE simulation, have netlists or model files already, or want to automate simulations from software. It is particularly suitable for engineers and developers integrating Verilog-A, Verilog, or VHDL models, and for teams embedding a simulator through a library or DLL. Students can also benefit if their course or project teaches netlist-based circuit analysis.
Look elsewhere when schematic capture is essential, when a single visual workspace is required, or when users are not prepared to manage command-line input, files, and platform-specific installation.
Pros and cons
Pros
- Free and open source: the full simulator is available at no license cost, making it practical for learning, prototypes, and broad deployment.
- Broad SPICE compatibility: PSPICE and LTSPICE parameters and discrete netlists can support reuse of established circuit assets.
- Mixed-signal depth: Verilator, GHDL, and OSDI/OpenVAF extend simulation across hardware-description and compact-model workflows.
- Programmable deployment: shared-library and DLL builds allow control from another application and support automation.
Cons
- No schematic entry: circuits must be supplied through files or the command line, ruling out a self-contained draw-and-simulate experience.
- Uneven installation path: Linux users may need distributor packages or a source build, and a project-provided macOS release is not currently offered on the stable download page.
- Toolchain overhead for advanced flows: mixed-signal and Verilog-A integration is powerful but can demand additional compilers, interfaces, and configuration.
Alternatives
SimFlow is worth choosing when you want a freemium option with a free trial and Linux, macOS, web, and Windows access, rather than ngspice's netlist-first desktop workflow.
COMSOL Multiphysics suits organisations prepared for quotation-based commercial or academic licensing and needing a paid, multi-platform environment with a free trial.
Xcos is a free choice distributed with Scilab for users who prefer that ecosystem.
FeenoX is another free, open-source option for API, Linux, self-hosted, or web use, with no graphical interface.
OpenFOAM is free GPL software for users seeking its engineering-simulation environment and willing to treat support and customisation as separate services.
OpenSim is a free, open-source platform for API, Linux, macOS, and Windows that requires a SimTK account for download.
MPTRAC provides free open-source Linux and self-hosted use, plus a browser-based Web Runner.
FEST-3D is a free GPLv3 option for Linux and macOS.
For broader category browsing, see Physics Simulation Software and Electrical Design Software.
Verdict
ngspice is the right recommendation for users who value a capable, standards-compatible simulator they can run for free, script, embed, and extend with external models. Its decisive weakness is the absence of schematic capture, so choose a visually oriented electrical design tool instead if drawing circuits and managing them in one interface matters more than netlist control.
The verdict
ngspice offers circuit simulation and model integration for users comfortable supplying netlists rather than drawing schematics. Check the platform-specific download notes before choosing how to install it.
Questions people ask
How much does ngspice cost?
ngspice is free, with a listed price of free on its free plan.
Which platforms are supported?
It supports Linux, macOS, Windows, and self-hosted deployment.
Is ngspice open source?
Yes. ngspice is described as an open-source circuit simulator.
Can it use PSPICE or LTSPICE models?
Yes. Its SPICE compatibility supports PSPICE or LTSPICE device-model parameters and discrete-circuit netlists.
Does ngspice include schematic capture?
No. Input is command-line or file-based, and the product has no schematic-entry capability.
What integrations are listed?
The project lists KiCad, Autodesk Fusion, and Python interfaces including PySpice.
What the maker publishes
- Circuit types
- It simulates analog, digital, and mixed-signal circuits described in netlists. source
- Compatibility
- It is SPICE-compatible and can use PSPICE or LTSPICE device model parameters and netlists for discrete circuits. source
- Downloads
- The stable download page offers source archives and Windows binaries, while noting that Linux users should use their distributor or compile from source and that its own macOS release is currently unavailable there. source
- Free plan
- Yes source
- Input limitation
- ngspice does not provide schematic entry; its input is command-line or file-based. source
- Mixed-signal integration
- It supports mixed-signal co-simulation with Verilog blocks compiled using Verilator and, since ngspice-44, VHDL blocks using GHDL. source
- Model integration
- The OSDI/OpenVAF interface integrates Verilog-A compact device models without requiring programming on the ngspice side. source
- Models
- It provides device models for active, passive, analog, and digital elements, and can use model parameters from collections, manufacturers, and foundries. source
- Platforms
- The source compiles on Linux, Windows, Mac, BSD, and Solaris; the download page also points macOS users to Homebrew. source
- Programming
- ngspice can be compiled as a shared library or DLL for control by a calling application. source
- Purpose
- ngspice is an open-source simulator for electric and electronic circuits. source
- Support
- The project offers mailing lists, discussion forums, a bug tracker, an FAQ, and documentation. source
- Third-party integrations
- The project lists integrations with KiCad, Autodesk Fusion, and Python interfaces including PySpice. source
Checked against the maker's pages on 7 Oct 2026.