SageMath is a free open-source mathematics software system licensed under the GPL. It builds on top of many existing open-source packages: NumPy, SciPy, matplotlib, Sympy, Maxima, GAP, FLINT, R and many more. Access their combined power through a common, Python-based language or directly via interfaces or wrappers.


This page is designed to be a resource for getting started with Sage. It is by no means comprehensive, nor does it necessarily represent best practice. (I myself am a Sage novice.)

Ways to use Sage

There are three ways that you can use Sage:

  • Small pieces of Sage code can be executed at the SageMathCell. All of the code on this page is written in a way that it can be run on the SageMathCell. LC also has a local Sage cell server, which can be found here:
  • You can download Sage (free) to your computer at:
  • You can also use the cloud-based SageMathCloud. There is a free version of this service. However, I suggest you spend the money for one of the personal subscriptions, as the performance is much better.

Web Resources

I have found the following resources to be helpful:

Short bits of code

I am working to construct pages with short bits of code that are helpful for my students. If you have a request, or if you have some neat code that you think other students would like, please let me know!