{"schemaVersion":"1.0","record":{"label":"ngspice","description":"Open-source analog and mixed-signal circuit-simulation engine with command-line and shared-library interfaces.","aliases":[],"kind":"software","website":"https://ngspice.sourceforge.io/","overview":"ngspice is an open-source circuit-simulation engine for analog and mixed-signal work. It processes netlists and component models and can be used from a command-line environment or through another application's interface. This makes it both a simulator in its own right and a building block beneath graphical electronics tools.","license":"Modified BSD; documentation has separate terms","lifecycle":"active","example":false,"features":[{"name":"Embeddable simulation engine","status":"supported","detail":"A shared-library API exposes simulation control and data callbacks.","useCase":"Electronic circuit simulation","platforms":["Windows","Linux","macOS","FreeBSD"],"region":"Availability depends on platform, build and component-model compatibility","evidence":[{"url":"https://ngspice.sourceforge.io/shared.html","locator":"Control functions, callbacks, simulation thread and frontend integration","retrievedAt":"2026-10-07T03:37:57Z","kind":"vendor"}]},{"name":"Built-in schematic entry","status":"unsupported","detail":"Schematic capture is supplied by separate frontends rather than the ngspice core.","useCase":"Electronic circuit simulation","platforms":["Windows","Linux","macOS","FreeBSD"],"region":"Availability depends on platform, build and component-model compatibility","evidence":[{"url":"https://ngspice.sourceforge.io/","locator":"Netlist simulation, third-party interfaces and platform downloads","retrievedAt":"2026-10-07T03:33:17Z","kind":"vendor"}]}],"alternatives":[],"slug":"ngspice","draftAlternatives":[{"targetSlug":"xyce","status":"limited","detail":"Alternative engine for supported models and analyses; syntax, numerical behavior and frontend requirements differ.","useCase":"Compatible netlist-based circuit analysis","platforms":["Windows","Linux","macOS","FreeBSD"],"region":"Availability depends on platform, build and component-model compatibility","evidence":[{"url":"https://ngspice.sourceforge.io/","locator":"Netlist simulation, third-party interfaces and platform downloads","retrievedAt":"2026-10-07T03:33:17Z","kind":"vendor"},{"url":"https://xyce.sandia.gov/documentation-tutorials/frequently-asked-questions/","locator":"SPICE compatibility, parts models, XDM and parallel performance qualifications","retrievedAt":"2026-10-07T03:34:05Z","kind":"vendor"}]}],"evidence":[{"url":"https://ngspice.sourceforge.io/","locator":"Netlist simulation, third-party interfaces and platform downloads","retrievedAt":"2026-10-07T03:33:17Z","kind":"vendor"},{"url":"https://ngspice.sourceforge.io/faq.html","locator":"Sections 1.1, 1.5 and 2.3: architecture, licensing and command-line interface; old version list not used","retrievedAt":"2026-10-07T03:38:18Z","kind":"vendor"}],"document":{"version":1,"references":[{"url":"https://ngspice.sourceforge.io/faq.html","locator":"Sections 1.1, 1.5 and 2.3: architecture, licensing and command-line interface; old version list not used","retrievedAt":"2026-10-07T03:38:18Z","id":"ng-faq","title":"ngspice FAQ","kind":"vendor"},{"url":"https://ngspice.sourceforge.io/","locator":"Netlist simulation, third-party interfaces and platform downloads","retrievedAt":"2026-10-07T03:33:17Z","id":"ng-home","title":"ngspice project","kind":"vendor"},{"url":"https://ra3xdh.github.io/","locator":"Simulator backends, packages and schematic interface","retrievedAt":"2026-10-07T03:38:18Z","id":"qucs-home","title":"Qucs-S project","kind":"vendor"},{"url":"https://ngspice.sourceforge.io/shared.html","locator":"Control functions, callbacks, simulation thread and frontend integration","retrievedAt":"2026-10-07T03:37:57Z","id":"ng-shared","title":"ngspice shared library","kind":"vendor"},{"url":"https://qucs-s-help.readthedocs.io/en/latest/subckts-and-ext-models/spice-models/spice-troubleshooting-and-compatibility-modes.html","locator":"Vendor dialects, expressions and ngspice compatibility settings","retrievedAt":"2026-10-07T03:33:53Z","id":"qucs-compat","title":"SPICE troubleshooting and compatibility modes","kind":"vendor"},{"url":"https://ngspice.sourceforge.io/docs.html","locator":"Stable manual versus continuously updated development documentation","retrievedAt":"2026-10-07T03:34:05Z","id":"ng-docs","title":"ngspice documentation","kind":"vendor"},{"url":"https://xyce.sandia.gov/documentation-tutorials/frequently-asked-questions/","locator":"SPICE compatibility, parts models, XDM and parallel performance qualifications","retrievedAt":"2026-10-07T03:34:05Z","id":"xy-faq","title":"Xyce frequently asked questions","kind":"vendor"}],"overviewCitations":["ng-home","ng-faq"],"licenseCitations":["ng-faq"],"sections":[{"id":"workflow","heading":"Netlists and graphical frontends","paragraphs":[{"id":"workflow-detail","content":[{"text":"The core workflow supplies a circuit netlist, device descriptions and analysis instructions, then examines numerical results or plots. ngspice does not supply its own schematic-entry application. A graphical environment therefore contributes a separate layer of drawing, project organization and analysis controls. "},{"text":"Qucs-S","targetSlug":"qucs-s"},{"text":" is one such frontend; adopting it and adopting ngspice are related decisions, but they are not the same software substitution."}],"citations":["ng-home","qucs-home"]}]},{"id":"integration","heading":"Embedding the simulator","paragraphs":[{"id":"integration-detail","content":[{"text":"The shared-library interface lets a controlling application submit a netlist, start an analysis in another thread and receive results through callbacks. It can also stop execution, change parameters and resume. This is useful when an application needs its own interface or automated analysis loop rather than a fixed standalone editor. Library integration remains development work: availability of callbacks does not provide a ready-made graphical workflow by itself."}],"citations":["ng-shared"]}]},{"id":"compatibility","heading":"Models and reproducibility","paragraphs":[{"id":"compatibility-detail","content":[{"text":"SPICE compatibility is qualified by model syntax and the simulator's supported features. Qucs-S documentation shows that manufacturer models can require ngspice compatibility settings or expression changes. A migration should retain the original netlist and external model files alongside the resulting data, allowing discrepancies to be traced to inputs rather than only compared visually. Documentation also distinguishes a stable release manual from continuously updated development material, which can describe features absent from an installed version."}],"citations":["qucs-compat","ng-docs"]}]},{"id":"licensing","heading":"Licensing and substitution scope","paragraphs":[{"id":"licensing-detail","content":[{"text":"The project identifies its software license as modified BSD, while its manual uses separate Creative Commons terms. Platform packages and integrations determine how users obtain a usable environment. ngspice can replace Xyce for compatible netlist-based circuit analyses, but neither SPICE-compatible syntax nor a successful import establishes identical model coverage or numerical results. Users needing a complete schematic workspace must additionally choose a frontend; switching simulation engines alone does not supply one."}],"citations":["ng-faq","ng-home","xy-faq"]}]}]},"id":"Q995","revision":1043,"updatedAt":"2026-10-13T18:17:07Z","sourceUrl":"https://substitutefor.net/entities/Q995?revision=1043"}}