Free Graph Animation Maker: Math Graphs to MP4 and Shorts

Want to make a math animation like the viral ones, where a glowing curve draws itself on moving axes? Use the free graph animation maker below. Type an equation, watch a cartoon monkey ride the line, and download the animation as a video for YouTube or Shorts.

Quick answer

Type an equation in the free graph animation maker below, press Start, and a cartoon monkey draws your graph on animated axes with sound. Press Download Video to save it as an MP4 (or WebM) for YouTube in 16:9 or for Shorts and Reels in 9:16.

  • No sign-up, no code. Free videos carry a small gossipfunda.com mark; watch one short ad to download without it. It runs in your browser.
  • Sync ON draws 2 to 4 graphs at the same time. Sync OFF draws them one after another.
  • I built it with one Gemini Canvas prompt and 4 follow-ups. All the prompts are below.

Free · no sign-up · runs in your browser

Math Graph Animator

Loads only when you click. Works best in Chrome on a computer.

Tip: open the tool in full screen with the ⛶ button for the widest preview. Everything stays in your browser, and nothing is uploaded.

  1. Pick a format. 16:9 for YouTube or 9:16 for Shorts, then press Start.
  2. Type your equation like y = sin(x), or tap a Quick Example.
  3. Style it. Theme, colors, speed, a title, and Sync for several graphs.
  4. Download Video. It replays the animation and downloads the file.
Video from the Gossipfunda YouTube channel: how I built this graph animation maker in Gemini Canvas.

How to make an animated math graph in 4 steps

  1. Choose 16:9 or 9:16 on the start card, then press Start the animator. You can switch later with the 16:9 and 9:16 buttons.
  2. Type an equation in the Equations box, for example y = e^(-x/4) * cos(2x), or tap a Quick Example. Press + Add Curve for more graphs.
  3. Style it. Pick a theme, change a curve color with its color square, set the speed and the X and Y range, and add a title in Extras.
  4. Press Download Video. The tool replays the whole animation from the start and downloads it when it ends. Click once inside the tool before recording so the sound is on.
The graph animation maker drawing a circle, a cosine and a sine curve with monkey and cat markers and a video title.
Three curves race at once with Sync ON and a custom title.

What this graph animation maker can do

FeatureWhat it doesTip
Animated axes and glowing curvesThe grid and axes slide in, then each curve draws itself with a glowLower the speed to 0.5x for a calmer Short
Monkey and cat markersA cartoon monkey (or cat) rides the tip of the line, climbs, slides and swings at peaks and dipsClick the 🐵 button on a curve to switch to 🐱
Live (x, y) signThe marker holds a sign with the current valueTurn it off with Coordinates: OFF for a cleaner look
SoundA tone follows the curve (higher y, higher pitch) with a pop at every peak and dipUse the volume slider before you record
16:9 and 9:161920 x 1080 for YouTube, 1080 x 1920 for Shorts, Reels and TikTokPress 1:1 Grid if a circle looks squashed
Sync ON / OFFDraw several curves together, or one after anotherSync ON with 3 curves makes a fun race
4 themesDark Neon, Chalkboard, Clean White and SunsetChalkboard looks great for teachers
Video exportRecords the full animation with sound, MP4 or WebM. Free videos have a small gossipfunda.com mark; one short ad removes itChrome gave MP4 in my tests

Animate several graphs at once with Sync ON or OFF

Add a second curve and the tool gives it a cat marker, so the monkey and the cat race each other. With Sync: ON all curves start together. With Sync: OFF one curve finishes before the next one starts, which is easier to follow when you explain each graph.

Try the 🏁 3-curve race example: a circle, a cosine and a sine draw at the same time. The ⭕ 4 rings example draws four circles inside each other.

Gemini Canvas preview of the math graph animator with sin(x) and cos(x) drawing together and Sync ON.
Sync ON: sine and cosine draw together in my Gemini test.

Make a 9:16 graph animation for Shorts and Reels

Switch to 9:16 and the canvas becomes 1080 x 1920. The equation labels move to the top and the graph fills the tall frame. In my first test, a circle turned into a tall ellipse in 9:16. One follow-up prompt fixed it, and now the tool keeps the X and Y scale equal (1:1), so circles stay round.

Gemini Canvas math graph animator in 9:16 showing the circle x^2 + y^2 = 9 stretched into an ellipse.
The bug: in 9:16 my circle looked like an ellipse.

If you change the X or Y range by hand and the circle looks squashed again, press 1:1 Grid.

The same 9:16 graph after the fix, drawing a perfectly round blue circle with the monkey marker.
After one follow-up prompt, the 9:16 circle is round.

Equations you can type

TypeExampleNotes
Function of xy = sin(x), y = 0.25*x^3 - xYou can also type only the right side, like cos(x)
Damped wavey = e^(-x/4) * cos(2x)Looks great with the Sunset theme
Circlex^2 + y^2 = 9Radius 3, centered at 0
Moved circle or ellipse(x - 2)^2 + (y + 1)^2 = 4, x^2/9 + y^2/4 = 1Use 1:1 Grid to keep it true to shape
Functionssin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, abs, ln, log, log2, exp, floor, ceil, round, signlog is base 10, ln is natural log
Constantspi, e, tauImplicit multiplication works: 2x, 3sin(x)

How I built this tool with one Gemini Canvas prompt

The tool started as a single prompt in Gemini. Canvas in Gemini can write and preview a full web app in the chat. Google rolled Canvas out to both Gemini and Gemini Advanced users in March 2025 (Google announcement). Here is exactly what I did.

1. Turn on Canvas

Open gemini.google.com, start a new chat, click + under the text box, then More tools and Canvas (Google’s help page calls this button Add files). The Canvas chip appears in the prompt bar. I showed this menu step by step in my Gemini motion graphics guide.

Gemini home screen with the Canvas tool selected in the prompt bar before typing the graph animation prompt.
Canvas is on: the chip sits in the Gemini prompt bar.

2. Paste the master prompt

This is the exact prompt I used. Copy it as is, or change the themes, the marker and the formats.

Build a "Math Graph Animator" app in Canvas. I type any math equation and it draws the graph on animated X and Y axes, like a motion-graphics video. Equations: an input box for one or more equations, like y = sin(x), y = x^2 – 3, y = 2x + 1, y = e^(-x/4) * cos(2x). Each equation gets its own color. Include 4 example buttons to load these with one click. Animation: the axes slide in with tick labels and a grid, then each curve draws itself smoothly from left to right with a glowing line. Speed slider and an X/Y range setting. Monkey marker: a cute cartoon monkey (drawn with canvas or SVG, no images) rides the tip of the curve as it draws and holds a small sign showing the live (x, y) value. When the curve slopes down he slides, when it goes up he climbs, and at peaks and dips he hangs from the line by one arm and swings for a moment. Sound: Web Audio tone that follows the graph as it draws: higher y means higher pitch, with a soft "pop" at each peak and dip. A mute button. Colors: theme picker (Dark Neon, Chalkboard, Clean White, Sunset) plus a color picker for each curve. Formats: toggle between 16:9 (1920×1080) for YouTube and 9:16 (1080×1920) for Shorts and Reels. The layout adapts to each. Export: a "Record Video" button that replays the full animation and records it with the browser's MediaRecorder API, sound included (MP4 H.264 if supported, otherwise WebM), then downloads it. No watermark.
Gemini Canvas working on the Math Graph Animator prompt with the status Refining canvas monkey animations.
Gemini plans the app (“Refining canvas monkey animations”).

3. Test the first version

In about a minute Gemini showed a working app with example buttons, a color for each curve, four themes and the monkey marker. My first test was the damped wave.

First version of the Gemini Canvas math graph animator drawing a damped cosine wave with the monkey marker.
The first build drew the damped wave right away.
Gemini Canvas graph animator with y = cos x and y = sin(x) on the Clean White theme and the Export menu.
Two curves on Clean White, with the Canvas Export menu.

The 4 follow-up prompts I used (and what each fixed)

The first version was good, but the best features came from short follow-ups. These are my real prompts, typos included.

My follow-up promptWhat Gemini changed
I want to draw circle too, add volume buttonAdded circles and ellipses (like x^2 + y^2 = 9), a Circle example, and a volume button and slider
in 9:16 ration the circle looks like EllipseKept the X and Y scale 1:1 when you switch formats and added a 1:1 Grid button
I want to play two graph simultaneously, but the next one have cat as a markerAdded Sync ON/OFF, a cat marker for the second curve and a sin and cos example
what is this why u are geeting into so many errors?Gemini said small patches had broken the file and rewrote the whole app cleanly
Typing the follow-up prompt I want to draw circle too, add volume button in the Gemini Canvas chat.
Follow-up 1: circles and a volume button.

After the follow-ups, Gemini sometimes showed a Something went wrong message. Clicking Fix error usually repaired it.

Gemini Canvas Something went wrong message with the Fix error button below the graph animator.
When it breaks, click Fix error first.

When the errors kept coming back, asking Gemini why worked better than clicking Fix error again. It rewrote the whole file, and the app worked from then on.

Gemini reply apologizing for the errors and rewriting the complete math graph animator file.
Asking why made Gemini rewrite the whole file.

Record and download the graph animation video

Press Download Video. On this page the button says Download for ease, but it actually records the canvas in real time, like a screen recording, and saves the file when the animation ends. The animation restarts from zero, records the canvas with the sound, and downloads the file when the last curve finishes. You can stop early by clicking the button again. Files are named like math-graph-16x9.mp4 or math-graph-9x16.mp4.

Gemini Canvas math graph animator recording a 1920x1080 MP4 of the Sunset theme damped wave.
Download Video saves a 1920 x 1080 MP4 with sound.

When I recorded in Chrome, the tool saved an MP4 with sound. Browsers that can’t record MP4 save a WebM file instead.

Four themes compared

The same nine-curve stack in 9:16 looks very different in each theme. Sunset and Dark Neon pop on phones, Clean White suits slides, and Chalkboard feels like a classroom.

Four 9:16 exports from the graph animation maker in Sunset, Clean White, Dark Neon and Chalkboard themes.
The same graphs in Sunset, Clean White, Dark Neon and Chalkboard.

What I added for this web version

The tool on this page is Gemini’s final version, rebuilt so it loads fast inside an article. I removed the external style and font files and added a few options:

  • Video title: type a title and it shows on the video, like “Circle vs Sine vs Cosine”.
  • Line thickness and Hold at the end (how long the finished graph stays on screen).
  • Coordinates ON/OFF and Legend ON/OFF for a cleaner frame.
  • 3-curve race and 4 rings examples, a full-screen button, and keys: Space plays or pauses, R replays.
Controls of the graph animation maker with equations, Sync ON, quick examples, range settings and the Extras panel.
Equations, Sync, ranges and the new Extras panel.

Common mistakes and how to fix them

  • No sound in the video: click inside the tool before recording, and check the mute button and volume.
  • The circle looks like an ellipse: press 1:1 Grid.
  • The curve goes off screen: widen the X or Y range, or press Reset.
  • Red error under an equation: check the brackets and use ^ for powers, like x^2.
  • Building your own in Gemini keeps breaking: stop patching. Ask Gemini to rewrite the whole file.

Limits to know

  • Video export needs a browser that supports recording a canvas. Chrome on a computer worked best in my tests.
  • The video is recorded in real time, so a 10-second animation takes 10 seconds to record. Keep the tab open.
  • Gemini limits can differ by plan, so if you build your own copy, test it on your own account.

FAQ

Is this graph animation maker really free?

Yes. It runs in your browser with no sign-up. Previews and video exports are free. Free videos carry a small gossipfunda.com mark in the corner; watch one short ad to download a video without it.

Can I make a 9:16 graph animation for YouTube Shorts?

Yes. Pick 9:16 before you press Start, or switch with the 9:16 button inside the tool. The video is 1080 x 1920. Circles stay round because the grid is kept at a 1:1 scale.

Does the video download as MP4?

It records MP4 (H.264) when your browser supports it and WebM when it doesn’t. When I recorded in Chrome, I got an MP4 with sound.

How do I animate two or more graphs at the same time?

Add curves with + Add Curve and keep Sync ON. All curves draw together, and the second curve gets a cat marker. Turn Sync OFF to draw them one after another.

Which equations can I type?

Functions of x like y = sin(x), y = x^2 – 3 or y = e^(-x/4) * cos(2x), and circles or ellipses like x^2 + y^2 = 9. It supports sin, cos, tan, sqrt, abs, ln, log, exp, pi, e, ^ and implicit multiplication like 2x.

Do I need Gemini to use this tool?

No. The tool on this page works on its own. You only need Gemini Canvas if you want to build your own version from the prompt.

Why is there no sound in my video?

Click inside the tool once before you record, because browsers only start audio after a click. Also check that the mute button is off and the volume slider is above 0%.

Start animating

Scroll up, type your first equation and press Download Video. You’ll have a math animation for YouTube or Shorts in under a minute. For more free AI tools and tutorials, subscribe to the Gossipfunda YouTube channel.