Link Search Menu Expand Document (external link)

Welcome to BioNetGen! Flagman

BioNetGen is software designed for modular, structure-based modeling of biochemical reaction networks. It can be applied to many other types of modeling as well. It provides a simple, graph-based syntax that lets users build reaction models out of structured objects that can bind and undergo modification.

For more information, visit BioNetGen’s documentation.

Announcement: BioNetGen 3 alpha now available

The first public pre-release of BioNetGen 3 (BNG3), version 3.0.0a1, is available on PyPI and GitHub. BNG3 reimplements BioNetGen in C++ with a Python interface. It reads the same BioNetGen Language (BNGL) models and generates networks and runs simulations in a single process, without Perl. It also brings three projects that were previously separate, BioNetGen 2, PyBioNetGen and NFsim, into one package.

Highlights:

  • Network generation and the BNGL actions (generate_network, simulate, parameter_scan and others) run in a native C++ engine, validated against BioNetGen 2.
  • ODE, SSA, partitioned leaping (PLA) and partial scaling (PSA) simulation of generated networks, and network-free simulation with the embedded NFsim engine (NFcore) or the new NFnext engine.
  • Import and export of SBML Level 3, including the comp and multi packages, and export to MATLAB, Python, C++ and other formats.
  • The Atomizer, which translates SBML models into BNGL and can recover the molecular structure (molecules, complexes and modification states) that an SBML model leaves implicit. Run it with bionetgen atomize -i model.xml -a or bionetgen.from_sbml("model.xml", atomize=True); it needs the full extra (pip install --pre "bionetgen[full]>=3.0.0a1").
  • A Python API (bionetgen.load(), model.simulate()) and a bionetgen command-line tool.
  • Pre-built packages for Python 3.9–3.14 on Linux, macOS and Windows, with no compiler needed.

To install BNG3:

python -m pip install --pre "bionetgen>=3.0.0a1"

Because 3.0.0a1 is a pre-release, pip install bionetgen without --pre still installs PyBioNetGen 0.8.7. To stay on PyBioNetGen, pin bionetgen<3.

This is an alpha release, and its interfaces may change before 3.0. BioNetGen 2.9.5 remains the stable release for production work. Please try BNG3 on your models and report problems on the BNG3 issues page.

New Project Announcement: BioNetGen Playground

Come play with us at our new playground, the BioNetGen Playground!

We are excited to share the BioNetGen Playground, a new interactive project for exploring rule-based modeling concepts in a hands-on way.

Features include:

  • Interactive examples for learning BioNetGen concepts
  • Browser-based access with no local setup required
  • A streamlined environment for experimenting with models and rules
  • Open-source development on GitHub

Using BioNetGen with the VS Code Extension

1 / 3
Editor window
Easily construct models with snippets and completion
2 / 3
Simulation plotting
Run a simulation and plot the results with a single click
3 / 3
Network visualization
Browse multiple diagrams of a model and rule structure with the yEd graph editor


Note: yEd graph editor must be installed separately.

The best way to get help, report a bug, or request a feature is to post an issue on the appropriate project’s GitHub issues page. Otherwise, email us. All help requests, including models or model snippets, will be treated confidentially.

Download

To begin using BioNetGen, see the installation instructions. This will guide new users through installing VS Code and the BNG extension.

News

  • BioNetGen 3 alpha (3.0.0a1) released in November 2026. See the announcement above.
  • If you’ve spent some time browsing this site, please consider filling out this feedback form to help improve it!
  • A command line tool for weighted ensemble sampling of BNGL models, WEBNG, has been released. See the GitHub repository and the documentation.
  • WARNING for MacOS users: New versions of OS X (11.5 or newer) might force you to switch your default shell to zsh (see here). This will break the extension if you are using Anaconda Python, since it will no longer be your default Python in zsh. Try renaming your .bash-profile to .zprofile.

Citing BioNetGen

If you use BioNetGen for a project please cite

In addition, consider sending us an email or post at us on X (formerly known as tweeting) @bionetgen. We’d love to hear about it!

Acknowledgements

BioNetGen development and maintenance has been supported in part by the NIGMS-funded National Center for Multiscale Modeling of Biological Systems (MMBioS). Past support has been provided by NIH grants (P41GM103712, GM076570, GM103712, GM085273, AI35997, CA109552), NSF grant 0829788, the Arizona Biomedical Research Commission, and the Department of Computational Biology at the University of Pittsburgh School of Medicine.

BioNetGen and this website are maintained by the Faeder Lab in the Department of Computational and Systems Biology at the University of Pittsburgh.