Skip to main content
v2026.11,986 entries · CC-BY 4.0

Macaulay2: What It Is, How to Install and Cite It

Macaulay2 is open-source algebraic geometry software. Install routes by operating system, how to cite it and what to record for reproducible results.

Written and maintained by CASRAI Editorial Board

Published

On this page

Macaulay2 is free, open-source software for research in algebraic geometry and commutative algebra. Daniel Grayson and Michael Stillman created it, and it computes objects such as Gröbner bases, free resolutions, Betti numbers and primary decompositions. The current stable release on the project homepage is 1.26.06, dated June 10, 2026. You run it through its own interpreted language, and you extend it by writing or loading packages.

Definition and scope

The project homepage describes Macaulay2 as “a software system devoted to supporting research in algebraic geometry and commutative algebra.” It is a computer algebra system with a narrow research focus, not a general numerical or statistical package. Its development is directed by the Macaulay2 Council, and the National Science Foundation has funded its creation since 1992. The GitHub repository shows copyright from 1993 to 2026, and lists Grayson and Stillman as the original authors, with David Eisenbud joining later.

The reference manual calls the system “an interpreted, dynamically typed programming language” and states that all of its components are open source. In practice that means the thing you cite in a paper is both a program and a language: results come from code that you or a package author wrote, run on a specific release. That is why the research-practice sections below concentrate on versions, packages and citation.

If you are looking for a different kind of mathematical software, the CASRAI guide to FLINT, the Fast Library for Number Theory covers a C library for number-theoretic computation. Macaulay2 itself links against FLINT, as the licensing section below explains.

How Macaulay2 is used in practice

What you compute with

According to the manual, Macaulay2 works with rings, ideals, matrices, modules, morphisms, chain complexes, varieties and sheaves. It lists its areas of application as commutative algebra, homological algebra, algebraic geometry, combinatorics and analytic functions. The manual also says the distribution includes over two hundred contributed packages, and the homepage notes that contributors mostly extend the system by writing packages.

Where to learn it

The manual contains a separate Getting Started section and several worked tutorials. The table below maps each tutorial named in the manual to the kind of work it supports, using only the tutorial titles and the object and area lists above.

Manual tutorial What it teaches, going by its title
A first course in commutative algebra Basic commutative algebra computations
Modules in Macaulay2 Working with modules, one of the core object types
Elementary uses of Gröbner bases Gröbner basis computations
Canonical embeddings of plane curves and gonality Algebraic geometry of curves
Fano varieties Algebraic geometry of varieties
Divisors Divisor computations in algebraic geometry

Editors and environments

The project wiki lists several ways to work with the language. It labels Emacs as the recommended editor and also describes Emacs through Org Mode. Further pages cover Jupyter, Sublime, VSCode, Vim, Neovim and Zed, and there is a Codespaces repository that uses a VSCode extension. The homepage also links two browser-based Macaulay2Web instances, one hosted in Melbourne and one at Georgia Tech, which let you try the system without installing anything.

Getting help

The homepage points to a Google discussion group and a Zulip team chat. The wiki also holds guides for workshop participants and organizers, and the homepage lists upcoming events, including workshops in 2027.

Install routes by operating system

The data table below the guide lists every install route the project wiki names, with the wiki page that documents it. The wiki gives a Homebrew tap for macOS, a distribution-specific page for Linux and a Windows Subsystem for Linux page for Windows. It lists no native Windows installer. Docker images are kept in the main repository, and you can build from source with either Autotools or CMake.

For a collaborative project, the route matters less than the outcome: everyone on the team should end up on the same release. A browser instance is convenient for a quick check, but the homepage does not say which version a given Macaulay2Web server runs, so for results that go into a paper, install a release you can name.

Citing and recording versions

The homepage links a “How to cite” page and a book titled “Computations in algebraic geometry with Macaulay 2.” The GitHub repository also carries a CITATION.cff file, and GitHub’s “Cite this repository” option reads it. Use those project-provided routes rather than composing a reference from memory.

The checklist below is an editorial recommendation built from those facts, in line with the CASRAI definition of computational reproducibility:

  • State the Macaulay2 release you ran. The project publishes numbered stable releases such as 1.26.06, so write the number, not “the latest version.”
  • List every package you loaded. Over two hundred contributed packages exist, and a computation can depend on any of them.
  • Cite the system through the project’s “How to cite” page or the repository CITATION.cff, and cite packages you relied on in the same way where they provide guidance.
  • Keep the script itself with the paper or its repository, since the manual describes Macaulay2 as a programming language and the script is the method.
  • Record how you installed it (Homebrew, a distribution package, WSL, Docker or a source build), so another person can rebuild the same environment. The guide to GNU Guix reproducible software environments covers one way to pin a whole environment.

Licensing and openness

The repository states that Macaulay2 is free software under GPL version 2 or later. It also states that the binaries are GPL-3.0 because they link to libraries licensed under LGPL-3.0, naming FLINT and MPFR. If you redistribute binaries or build a product around them, read the repository license text; for ordinary research use the practical point is that the source is open and inspectable, which supports the openness goals described under open source software.

Package authors can register their work with the system. The wiki includes “Writing your first package,” a Package Writing Style Guide, best-practice pages and a policy on contributing and maintaining packages, and the repository provides installPackage and check functions for packaging and testing.

Where it matters for labs and research groups

Macaulay2 sits in a research group’s computing environment rather than at a bench, so the supply and procurement decisions are different from physical equipment. The decisions that matter are which release the group standardizes on, which install route it supports, who maintains local packages and how results are cited. Because the software is free and open source, the ongoing work for a group is maintaining a working, documented environment. For software roles that keep such environments running, see the CASRAI overview of research software, reproducibility and citation.

Common misunderstandings

It is the algebra system, not another resource with a similar name

This page covers only the software described on macaulay2.com and in the project’s GitHub repository, the system for algebraic geometry and commutative algebra. Other resources with similar-looking names are unrelated to it.

It is not a graphical application

Work happens in an interpreted language session or in scripts. Editors and notebooks add convenience, but the system is code first.

A browser instance is not a substitute for a pinned install

Macaulay2Web is useful for trying commands. It is a hosted service run by the institutions named on the homepage, so a result you intend to publish should come from an installation whose release number you recorded.

Contributed packages are not all the core system

The homepage says contributors mostly extend Macaulay2 by writing packages. A package you load is part of your method and belongs in your methods text.

Frequently asked questions

What is Macaulay2 used for?

The project describes it as software supporting research in algebraic geometry and commutative algebra. Typical outputs listed on the homepage are Gröbner bases, free resolutions, Betti numbers and primary decompositions.

Is Macaulay2 free?

Yes. The repository states GPL version 2 or later for the software, and the manual states that all components are open source.

How do I install Macaulay2 on Windows?

The wiki documents installation through Windows Subsystem for Linux. It lists no native Windows route. A browser instance (Macaulay2Web) needs no installation at all.

How do I cite Macaulay2?

Use the “How to cite” page on the project site, or the CITATION.cff file in the GitHub repository, which GitHub exposes as “Cite this repository.”

Which version is current?

The homepage shows 1.26.06, released June 10, 2026, as the current stable version. Check the homepage before you start a project, because that value changes with each release.

Sources

Data: Macaulay2 install routes by operating system and the project wiki page that documents each

Compiled from the Macaulay2 project wiki and homepage as read on 2026-11-16: each install route the project names, the platform it serves and the documentation page it points to. No route is included that the project does not list.

Period covered: 2026.

Macaulay2 install routes by operating system and the project wiki page that documents each
PlatformInstall routeDocumentation page named by the project
macOSHomebrew tapHomebrew tap README (homebrew-tap repository)
LinuxDistribution-specific installationInstalling Macaulay2 in Linux
WindowsWindows Subsystem for Linux (no native route listed)Installing Macaulay2 in WSL
Any (containers)Docker imagesDocker Images (M2/BUILD/docker)
Any (source)Build from source with AutotoolsBuilding M2 from source using Autotools
Any (source)Build from source with CMakeBuilding M2 from source using CMake
Any (browser)Macaulay2Web hosted instances (Melbourne, Georgia Tech)Project homepage

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Macaulay2: What It Is, How to Install and Cite It

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →