Mathematics, brought to life by code.

MathCode is an integrated K-12 curriculum where every mathematical concept is explored through a code-driven, interactive project. Math first, syntax second.

Start learning About the methodology

Three tiers, twelve flagship projects

Tier 1 · K-3

Concrete + visual

Number sense, fractions, shapes, and patterns through Scratch-style block coding. Sequencing, loops, conditionals introduced via play.

Tier 2 · 4-7

Bridge to abstraction

Ratios, algebra, coordinate geometry, and probability. Students transition from blocks to readable Python with mirrored block + text views.

Tier 3 · 8-12

Applied + analytical

Functions, trigonometry, statistics, calculus. Students use Python with NumPy and Matplotlib to model and explore mathematical objects.

What makes MathCode different

Math first, syntax second

Every coding construct is introduced only when it deepens a mathematical idea. Code is a thinking tool, not a vocabulary list.

Concrete → Representational → Abstract

Each project follows the CRA progression. Students manipulate interactive visualizations before writing the symbolic code that drives them.

Standards-aligned

Curriculum maps to CCSS-Mathematics, CSTA K-12 CS Standards, and the K-12 Computer Science Framework across all twelve units per tier.

Built for teachers, free for schools

Projects run in any browser. No installs. Curriculum guides, pacing, and assessments included for every unit.

Try it in your browser, no install required.

Sign up for a free student account and start with Tier 1, Project 1.