BetterSPICE is a free, open-source SPICE circuit simulator

Hacker News by 18 min read 10x views
BetterSPICE is a free, open-source SPICE circuit simulator

Share Post

 cable colours prosecute the voltage, current dots move and the range runs

One color scale, 1 mV to 1 kV±60 V drive, 6 stages, charging former 240 V

BetterSPICE (Better SPICE) is a free, open-source SPICE circuit simulator for engineers who desire to see a circuit activity before they build it. Wires obtain the color of their voltage as you edit, current moves through the parts, and a microcontroller runs your program against its genuine pin voltages. Press F5 and the identical illustrative gets a complete transient, AC or DC analysis.

Free and open source, additionally at work. Windows, macOS, Linux and your browser. Version 1.0.0, source on GitHub.

Signals pass

5,767 of 5,767

455 test circuits, 4,647 signals against ngspice

Vendor models

160,807

from additional than 70 manufacturers, in the desktop app

Examples

1,000

circuits that open and run

The appThe entire window

The entire app in one window, in your browser

Parts on the left, the circuit operating in the middle, the part you click on the right, the range underneath. Click the image to see it complete size.

BetterSPICE operating an offline flyback power provision from 230 V AC to 12 V and 24 V alongside a microcontroller in the loop, the transformer selected in the inspector

  • 1Parts and 160,807 models
  • 2The circuit, operating live
  • 3Inspector: the selected part
  • 4Scope
  • 5Every part measured

A 230 V AC to 12 V and 24 V supply, all discrete, alongside a microcontroller decision the iteration through an optocoupler. The transformer is selected: primary, bias winding and a tapped secondary.

Free, nothing to install. Open it in your browser, or instal the desktop app for the complete vendor library.

Open the app

01Live view

Live simulation: it runs during you draw

The circuit runs as shortly as it has a origin and a ground. Every part's volts, amps and watts update during you edit.

Change a value during it runs and the waveforms follow. A capacitor keeps its voltage and an inductor its current through the edit, so nothing restarts. Keys 1 to 4 set the speed, and a 50 Hz rectifier and a 1 MHz converter the two run at a gait you can follow.

The wires use one color measure from 1 mV to 1 kV, so the identical voltage continually has the identical colour. Current dots develop into dashes as the current rises.

−1 kV−1 V0 V1 V48 V1 kV

Point at the bar for the voltage of a colour. A cable you item at in the circuit is marked on it.

A Wien-bridge oscillator operating live, alongside the output and the op-amp input on the scope

The identical appearance in the app: the Wien-bridge oscillator example, output in yellow, the op-amp's + input in green.

Live view, RC low-pass

+6 V−6 V, 4 ms across

V(IN) 0 V V(OUT) 0 V t = 0.00 ms

R1 1 kΩ

Point at a cable or a part, or tap it, for its live voltage and current. The values are worked out exactly in your browser and equivalent bspice tran on the identical circuit. One sequence of the 1 kHz origin takes 2 seconds here.

Big boards

A circuit of 100 parts or additional runs its live perspective on the native engine. On a 578-part commission that is concerning 1.4 times as accelerated as WebAssembly, alongside the identical frames bit for bit.

The dispersed of your parts

View > Tolerance collection shades the range all range trace takes alongside the parts at the ends of their tolerance, during the circuit runs.

When it can't keep up

When a circuit is too dense for the timebase you set, the toolbar shows how accelerated it really runs. Balanced and Fast keep the timebase at reduced accuracy, and a banner says what changed.

03Analyses

Transient, AC, DC and noise inspection alongside F5

Simulate runs the exact inspection on the illustrative in forefront of you. Leave the maximum stage on Auto and it picks one from the circuit's sources, edges and period constants, and tells you why.

 V in and V out on one chart

Transient of the Sallen-Key high-pass example complete 20 ms, V in and V out on one chart, the parts' volts, amps and watts beside it.

Tolerance runs change all part inner its tolerance (by default resistors 1 %, capacitors 10 %, inductors 20 %) and study the output against the limits you type, alongside all part's portion of the spread. Named measurements specified as increase time, overshoot, settling, ripple and phase border obtain limits and study PASS or FAIL following all run.

09Import and share

Import KiCad, EasyEDA, LTspice, Altium, Multisim and SPICE netlists

KiCad 6 to 10, EasyEDA Pro, LTspice .asc, Altium (.SchDoc, multi-sheet .PrjPcb), Multisim (.ms11 to .ms14) and SPICE netlists arrive in through File > Import, or by dropping the document on the window, as a drawn illustrative alongside wires and an Import study that lists all part as matched, approximated or not imported.

An LTspice illustrative brings its parts, wiring, symbols and the SPICE models it names. On LTspice's 61 example schematics the imported connections equivalent LTspice's own netlists, on 13 open-hardware Altium projects 2,528 pins equivalent the boards' own nets, and on 237 genuine Multisim records 95.9 % of the parts are matched.

File > Share nexus puts the circuit into a web address. Whoever opens it sees the circuit operating in a browser spectator alongside the range and sliders, and nothing is uploaded. Export interactive HTML writes the viewer, the motor and the circuit into one document of concerning 6 MB. Or open the entire app in your browser at app.bspicesim.com.

File > Generate study writes one HTML leaf alongside the schematic, the parts against their ratings, all inspection you ran and the diagnostics.

 its symbols and wiring, two 2N3904 transistors, and a transient anywhere the oscillation starts

LTspice's astable multivibrator, imported and simulated alongside its two 2N3904s.

1,000

example circuits. Press E.

40

categories, from a voltage divider to PLLs, motor drives and gate-level logic.

50

circuits that are normally built wrong, alongside the correct way and the average error flank by side.

8

regulators built on genuine vendor chips.

02Accuracy

Accuracy: checked against ngspice, indication by signal

bspice verify runs all test circuit through the BetterSPICE motor and through ngspice and compares them item by point. When the two disagree, the job is to discover out which one is right.

The live perspective matches Simulate, and Simulate matches ngspice

BetterSPICE has two engines on one core: the live view, which runs during you draw, and Simulate, the complete transient, AC, DC and operating-point analysis. Both resolve the circuit alongside modified nodal inspection and Newton iteration, using ngspice's equipment equations. At the identical period stage they provision the identical numbers: 992 of the 1,000 example circuits are identical to the final numeral at Simulate's step. The another 8 are named in the test: 7 use the Gear method, which the live perspective runs as trapezoidal, and one outcome is too big to compare.

Every publish is checked against ngspice on 455 test circuits. Operating points concur to improved than 1 part in 100 milliard on 95 % of values, AC responses inside 6.3 µdB on 95 % of signals, and transients have a median difference of 20 parts per trillion of the signal's range. 4,647 of 4,647 signals pass.

A continue that needed additional than the plain difference is marked in the report. That includes the signals anywhere ngspice was the one that was wrong, proved against an autonomous reference.

Parts that ngspice has no example for, specified as the microcontroller, are checked against a closed form or a datasheet opening and counted apart. They never figure as an ngspice pass.

Vendor models get the identical inspect throughout systems. A TI TLV9062 follower alongside 1 V in says 1.00011272134857 V on Windows, Ubuntu and Arch.

Run the suite yourself

$ bspice verify verification/circuits $ bspice verify examples --all

Set the step, peruse the error

The live motor at 1 to 20 times Simulate's maximum step, on six example circuits, against a run at a fourth of the step. Where the cap sets the step, the error grows alongside the stage squared. Where the circuit's own stage authority keeps the stage smaller, the curve flattens.

Inverting amplifier, V(VOUT), at 10 times Simulate's stage (10 µs): 244 ppm of the signal's range.

Live engine, measured on 29 November 2026 (1.0.0). Largest pointwise difference complete the run as a fraction of the signal's range. For the Wien bridge, the error of the period. Point at the chart, drag the slider or use the arrow keys.

04Vendor models

Vendor models and part types

The Assign example dialog listing N-channel MOSFET models alongside their key figures

Assign model, alongside the key figures of the selected MOSFET beside the list.

Search the catalog from the archive panel and allocate a example alongside its parameters in view.

The catalog covers Texas Instruments, Analog Devices, Infineon, Vishay, Murata, Würth Elektronik, Rohm, NXP and additional than 60 another makers. The models run in ngspice 47, and LTspice, PSpice and HSPICE dialects are converted on the way in.

Gain-bandwidth, slew rate, dropout and Rds(on) display in the inspector. Each fig says anywhere it came from: measured on the model, fitted, peruse from the example cardstock or taken from the datasheet.

For a part that isn't in the catalog, the Part Wizard covers 132 part types alongside 1,310 fields. Its Curves stage takes a datasheet chart as a pasted array or a digitized depiction and fits the example to the points.

  • Full package: 207,849 files, concerning 3 GB
  • Library can be added later

05Part types

446 part types, drawn as they are in the app

Every sign current is the one BetterSPICE puts on the schematic, grouped the way the parts archive groups them. Orange marks the pins. Where a part category has vendor models in the catalog, the tile gives the count.

Passives36 part types

  • Resistor
  • Resistor array, 4 isolated
  • Resistor array, 2 isolated
  • Resistor array, 8 isolated
  • Resistor network, 4 bussed
  • Resistor network, 8 bussed
  • PotentiometerLog (audio, A), Slide
  • Trimmer potentiometer
  • Rheostat
  • Dual potentiometer
  • CapacitorCeramic (MLCC), Film, Safety X, Safety Y
  • Electrolytic capacitorTantalum, Polymer
  • Supercapacitor
  • Trimmer capacitor
  • Feed-through capacitor
  • InductorRF
  • Power inductor
  • Adjustable inductor
  • Ferrite bead
  • Common-mode choke
  • Wire (length, gauge)
  • Transformer
  • Transformer, centre-tapped secondary
  • Transformer, centre-tapped primary
  • Transformer, two secondaries
  • Flyback transformer, 3 winding
  • Current transformer
  • Transformer, windings and taps
  • Flyback transformer
  • Forward transformer, reset winding
  • Push-pull transformer, centre-tapped
  • Half-bridge transformer
  • Full-bridge transformer
  • Centre-tapped output
  • Multi-output transformer
  • Tapped inductor

Sources29 part types

  • DC voltage
  • Sine voltage
  • Pulse / PWM voltage
  • Piecewise linear voltage
  • Square motion voltage
  • Function generator, square
  • Function generator, sine
  • Function generator, triangle
  • Function generator, sawtooth
  • Current generator, square
  • Current generator, sine
  • Current generator, triangle
  • Current generator, sawtooth
  • DC current
  • Sine current
  • VCVS (E)
  • VCCS (G)
  • CCVS (H)
  • CCCS (F)
  • BatteryLi-ion 3.7 V, LiFePO4 3.2 V, NiMH 1.2 V, Alkaline 1.5 V, Coin CR2032 3 V, Lead-acid 2 V/cell
  • Solar cell
  • Power flag
  • Rail +5 V
  • Rail +3.3 V
  • Rail +12 V
  • Rail -12 V
  • Rail -5 V
  • Ground
  • Isolated ground

Diodes and thyristors15 part types · 22,394 vendor models

Transistors17 part types · 38,019 vendor models

Analog ICs17 part types · 7,097 vendor models

Power management47 part types · 1,992 vendor models

  • LDO, accelerated block
  • Buck, accelerated block
  • Boost, accelerated block
  • Buck-boost, accelerated block
  • Charge pump, accelerated block
  • Isolated DC/DC, accelerated block
  • Reference, accelerated block
  • LDO, fixed 3 pin1,992 vendor models (LDO and DC/DC)
  • LDO, adjustable 3 pin
  • LDO alongside enable
  • LDO alongside allow and power-good
  • Negative regulator (79xx)
  • AMS1117 (SOT-223)
  • LDO, adjustable 5 pin
  • Buck converter, asyncAveraged (fast) model
  • Buck converter, synchronous
  • Boost converter (MT3608)
  • Boost converter, synchronous
  • PWM controller, voltage mode
  • PWM controller, current mode
  • Hysteretic controller
  • Constant on-time controller
  • Off-line buck
  • Off-line flyback
  • Quasi-resonant controller
  • LLC controller
  • PFC controller
  • Gate driver, low side
  • Gate driver, bootstrap
  • Half-bridge driver
  • Gate driver, isolated
  • LED driverBuck, boost
  • TP4056 charger
  • MCP73831 charger
  • Charge controllerCC/CV, float
  • Battery safety IC
  • Load switch
  • eFuse
  • Ideal diode
  • High-side switch
  • SupervisorReset, undervoltage, window
  • UVLO block
  • Soft-start
  • Current limit
  • DC/DC module
  • Isolated DC/DC module
  • AC/DC module

Electromechanical36 part types

  • Relay, SPDT
  • Relay, SPST-NO
  • Latching relay, sole coil
  • Relay, SPST-NC
  • Relay, DPST-NO
  • Relay, DPDT
  • Relay, 4PDT
  • Latching relay, sole coil DPDT
  • Latching relay, dual coil
  • Latching relay, dual coil DPDT
  • Reed relay
  • Solid-state relay, DC
  • Solid-state relay, AC
  • PhotoMOS relay
  • Switch
  • Switch, SPDTToggle, slide
  • Push button, NO
  • Switch, SPST
  • Switch, DPST
  • Switch, DPDT
  • Push button, NC
  • Tactile switch, 4 pin
  • DIP switch, 1 way
  • DIP switch, 2 ways
  • DIP switch, 3 ways
  • DIP switch, 4 ways
  • DIP switch, 5 ways
  • DIP switch, 6 ways
  • DIP switch, 8 ways
  • DIP switch, 10 ways
  • Rotary switch
  • Micro / bounds switch
  • Reed switch
  • Rotary encoder
  • Rotary encoder alongside shove switch
  • Voltage-controlled switch

Optoelectronics22 part types · 1,383 vendor models

  • LED1,383 vendor models
  • Laser diode
  • RGB LED, average cathode
  • RGB LED, average anode
  • WS2812B addressable LEDSK6812 RGBW
  • LED bar graph, 10
  • LED bar graph, 8
  • LED bar graph, 4
  • Incandescent lamp
  • Neon lamp
  • Optocoupler, transistor out
  • Optocoupler, transistor alongside base
  • Optocoupler, Darlington out
  • Optocoupler, triac out
  • Optocoupler, zero-cross triac
  • Optocoupler, logic out (6N137)
  • PhotodiodePIN, IR, UV
  • Phototransistor, 2 pin
  • Phototransistor alongside base
  • Photo-interrupter
  • Reflective sensor
  • IR receiver module

Logic and digital58 part types · 3,173 vendor models

Timing14 part types · 53 vendor models

Mixed-signal10 part types

Microcontrollers and programmable8 part types

Connectors and mechanical24 part types

  • Header, 1 row
  • Header, 2 rows
  • USB-C
  • Micro-USB
  • USB-A
  • DC cask jack
  • Audio jack, TRS
  • Audio jack alongside switches
  • SMA / U.FL connector
  • RJ45 jack
  • microSD socket
  • Battery holder
  • Banana / test jack
  • Solder jumper, open
  • Solder jumper, closed
  • Solder jumper, 3 pad
  • 0 Ω link
  • Net tie, 2 pads
  • Net tie, 3 pads
  • Test point, pad
  • Test point, loop
  • Mounting hole, plated
  • Mounting hole, non-plated
  • FiducialGlobal, local

Transmission lines12 part types

Motors and actuators14 part types

  • DC motorBrushed, fan, vibration, gear
  • Stepper, bipolar (4 wire)
  • Stepper, unipolar (6 wire)
  • Stepper, unipolar (5 wire)
  • RC servoAnalog, digital, uninterrupted rotation
  • BLDC motor, sensorless
  • BLDC motor alongside Hall sensors
  • SolenoidPull, push, valve, lock
  • H-bridgePWM + DIR, IN1 / IN2
  • Dual H-bridge, IN / IN
  • Dual H-bridge (TB6612)
  • A4988 stepper driver
  • DRV8825 stepper driver
  • Peltier (TEC)

Counts are vendor models per catalog kind. A benevolent that feeds multiple groups is counted once, on its chief part: diode models shield rectifier and indication diodes, zener models contain TVS and ESD diodes, regulator models shield LDOs and DC/DC converters. Another 95,440 vendor subcircuits (capacitors, inductors, ferrite beads, transformers, thermistors, crystals and ICs the indexer could not place) are submitted by part figure in the archive and are not counted on a tile.

MoreAlso in the app

Microcontrollers, calculators and AI agents

Your program runs inner the circuit

A microcontroller runs your code against its genuine pin voltages: GPIO, ADC, PWM, timers, UART, I2C, SPI and CAN, alongside a debugger that steps through it.

See the microcontroller

17 scheme calculators

Work out a divider, filter, dollar or trace width, afterward location the circuit and run the inspection that checks it. The identical calculators run on the website.

Open the calculators

An AI delegate on the identical schematic

Claude Code and another agents build and simulate circuits through the command row and MCP, and you observe all alter as it happens.

How agents use it

11Download

Download BetterSPICE 1.0.0

Every document below comes from the 1.0.0 publish on GitHub, beside the origin code.

Full includes the vendor example library. App lone is the program, and the archive can be added later. The Windows, Debian and Arch installers and the Full AppImage are 0.5.0: Help > Check for updates brings a new instal to 1.0.0 in one step. macOS and the AppImage are 1.0.0, NixOS 0.9.0 until its 1.0.0 follows.

Install once, afterward it updates itself. When a new type is out, an Update pill appears in the app's list bar, and Help > Check for updates asks at once. An update downloads lone the records that changed and takes consequence whenever BetterSPICE restarts. Your circuits, settings and example archive remain as they are. On NixOS, update from the new flake.

Runs in the browser

  • The editor, live view, scope, logic analyst and inspector
  • Simulate on the built-in engine: transient, AC, DC, noise, pole-zero, iteration gain, FFT
  • Tolerance and Monte Carlo
  • Microcontrollers and the MCU debugger
  • Nearly all of the 1,000 examples, the 17 calculators and the Part Wizard
  • Import KiCad, EasyEDA Pro, LTspice, Altium and Multisim schematics and SPICE netlists
  • Autosave, open a file, preserve as a download, portion a circuit as a link

Desktop app only

  • The complete vendor archive (160,807 models) and ngspice: the browser app has concerning 600 open-licensed models
  • Save in location to your own folders
  • The complete HTML report
  • AI agents and the MCP server
  • Full speed on ample boards: up to concerning 1.4x faster than the browser

In your browser No install

Chrome, Edge, Firefox or Safari, any system

The complete app, nothing to installAbout 600 open-licensed models. The complete vendor archive needs the desktop app

Open

Windows Your system

Windows 10 and 11, x64

FullSetup 0.5.0 alongside the library, 1,054 MB

Download

macOS Your system

macOS 11 or later, Apple Silicon. Version 1.0.0

FullInstaller 1.0.0 alongside the library, 861 MB

Download

Ubuntu and Debian Your system

Ubuntu 24.04 and another Debian-based systems

Full.deb 0.5.0 alongside the library, 839 MB

Download

Arch Linux

Arch and derivatives, pacman -U

App onlybetterspice 0.5.0, 69 MB

Download

Librarybetterspice-models 0.5.0, 609 MB

Download

NixOS and Nix

Version 0.9.0, no in-app update. NixOS notes

FlakeBuilds on your machine, 69 MB

Download

Any Linux

AppImage, x86-64

FullAppImage 0.5.0 alongside the library, 467 MB

Download

Already installed? Help > Check for updates brings any copy from 0.2.0 on to 1.0.0. The identical update records are on the publish page: Windows patch (92 MB), Mac app (91 MB), Debian patch (97 MB) and Arch patch (94 MB). Checksums: 1.0.0 SHA256SUMS.txt for the 1.0.0 files, 0.5.0 SHA256SUMS.txt for the 0.5.0 installers and SHA256SUMS-NixOS.txt for NixOS.

Updates

On Windows, Debian and Arch an update is a signed place of lone the records that changed, concerning 90 MB. If item fails the old records go back, and your circuits, settings and example archive are remaining alone.

Not code-signed yet

Windows SmartScreen asks once. On a Mac, authorize the archetypal commencement in System Settings > Privacy & Security > Open Anyway. Every document has a SHA-256 checksum beside it.

License

Use it for any purpose, additionally at work, and market the products you scheme alongside it. Selling BetterSPICE itself is not allowed. Your circuits and results are yours.

Known limits

These are the gaps we cognize concerning in 1.0.0.

  • The Mac Full installer puts the entire archive in place. No one has used it on their own Mac yet, and the in-app update hasn't been tried on a Mac.
  • PSpice-encrypted TI models need PSpice for TI, on Windows or under Wine on Linux. Without it they use fitted models, and BetterSPICE says so.
  • Linux packages are built and tested on Ubuntu 24.04 and current Arch on a virtual display. Other distributions, a genuine GPU and Wayland are not tested.
  • The live perspective and Simulate don't run compiled microcontroller firmware.

Who built it

Arwid Vasilev

Arwid Vasilev

Main designer

Full stack hardware engineer. Hardware development, testing, microcontroller firmware, software, commission bring-up and assembly.

Connect on LinkedIn

12Questions

Questions group ask

Is BetterSPICE free?

Yes, and it is open source. You can use it for any purpose, additionally at work, and market the products you scheme alongside it. Selling BetterSPICE itself is not allowed. The origin code is on GitHub, and the 1.0.0 downloads are in Download.

Which systems does it run on?

Windows 10 and 11 on x64, macOS 11 or afterward on Apple Silicon, Ubuntu and Debian, Arch Linux, NixOS, and an AppImage for another Linux systems. The Linux packages are tested on Ubuntu 24.04 and current Arch.

Does it open LTspice records and vendor SPICE models?

KiCad 6 to 10, EasyEDA Pro, LTspice .asc, Altium and Multisim schematics and SPICE netlists arrive in through File > Import. An LTspice illustrative brings its parts, wiring and the SPICE models it names, and on LTspice's 61 example schematics the imported connections equivalent LTspice's own netlists. The catalog holds 160,807 vendor models from additional than 70 manufacturers. They run in ngspice 47, and LTspice, PSpice and HSPICE dialects are converted on the way in. Compared alongside another simulators: Best SPICE simulators in 2026.

How exact is it compared alongside ngspice?

In the 1.0.0 run of 28 November 2026, all 4,647 signals from 455 test circuits passed against ngspice, alongside the two simulators at the suite's reltol of 1e-6. The median transient difference was 2 × 10⁻¹¹ of the signal's range. You can run the identical inspect yourself alongside bspice verify.

Can an AI delegate use it?

Yes. Claude Code connects through bspice mcp, and any another tool can use the WebSocket API. The delegate edits the circuit you have open, and you see all alter as it happens.

Is there a browser version?

Yes. The complete app runs in your browser at app.bspicesim.com, liberated and alongside nothing to install: the editor, live view, Simulate on the built-in engine, microcontrollers, nearly all of the 1,000 examples and the 17 calculators. It has concerning 600 open-licensed models. The complete vendor archive (160,807 models) and ngspice need the desktop app.

What is the finest SPICE simulator?

There is no sole finest one. LTspice is the mature liberated default, ngspice and KiCad lawsuit netlist and PCB work, and BetterSPICE suits seeing the circuit answer during you edit. Best SPICE simulators in 2026 compares nine tools alongside sources, and says anywhere BetterSPICE is weaker.

Is BetterSPICE an LTspice or PSpice alternative?

It can be. It imports LTspice schematics, converts PSpice-dialect models, and runs on Windows, macOS and Linux. BetterSPICE vs LTspice and the PSpice substitute page say anywhere the another tool is the improved choice.

Does it activity as an ngspice GUI?

It is a illustrative publishing company alongside its own live engine, and ngspice 47 runs the vendor models and is the citation the motor is checked against. The ngspice GUI page compares the forefront ends.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads