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.
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
Tip: open the tool in full screen with the ⛶ button for the widest preview. Everything stays in your browser, and nothing is uploaded.
- Pick a format. 16:9 for YouTube or 9:16 for Shorts, then press Start.
- Type your equation like y = sin(x), or tap a Quick Example.
- Style it. Theme, colors, speed, a title, and Sync for several graphs.
- Download Video. It replays the animation and downloads the file.
How to make an animated math graph in 4 steps
- 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.
- 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. - 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.
- 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.

What this graph animation maker can do
| Feature | What it does | Tip |
|---|---|---|
| Animated axes and glowing curves | The grid and axes slide in, then each curve draws itself with a glow | Lower the speed to 0.5x for a calmer Short |
| Monkey and cat markers | A cartoon monkey (or cat) rides the tip of the line, climbs, slides and swings at peaks and dips | Click the 🐵 button on a curve to switch to 🐱 |
| Live (x, y) sign | The marker holds a sign with the current value | Turn it off with Coordinates: OFF for a cleaner look |
| Sound | A tone follows the curve (higher y, higher pitch) with a pop at every peak and dip | Use the volume slider before you record |
| 16:9 and 9:16 | 1920 x 1080 for YouTube, 1080 x 1920 for Shorts, Reels and TikTok | Press 1:1 Grid if a circle looks squashed |
| Sync ON / OFF | Draw several curves together, or one after another | Sync ON with 3 curves makes a fun race |
| 4 themes | Dark Neon, Chalkboard, Clean White and Sunset | Chalkboard looks great for teachers |
| Video export | Records the full animation with sound, MP4 or WebM. Free videos have a small gossipfunda.com mark; one short ad removes it | Chrome 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.

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.

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

Equations you can type
| Type | Example | Notes |
|---|---|---|
| Function of x | y = sin(x), y = 0.25*x^3 - x | You can also type only the right side, like cos(x) |
| Damped wave | y = e^(-x/4) * cos(2x) | Looks great with the Sunset theme |
| Circle | x^2 + y^2 = 9 | Radius 3, centered at 0 |
| Moved circle or ellipse | (x - 2)^2 + (y + 1)^2 = 4, x^2/9 + y^2/4 = 1 | Use 1:1 Grid to keep it true to shape |
| Functions | sin, cos, tan, asin, acos, atan, sinh, cosh, tanh, sqrt, abs, ln, log, log2, exp, floor, ceil, round, sign | log is base 10, ln is natural log |
| Constants | pi, e, tau | Implicit 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.

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.

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.


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 prompt | What Gemini changed |
|---|---|
I want to draw circle too, add volume button | Added 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 Ellipse | Kept 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 marker | Added 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 |

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

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.

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.

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.

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.

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, likex^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
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.
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.
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.
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.
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.
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.
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.
Awill Misra (Known as Awill Guru) holds a B.Tech in Electronics & Communication Engineering and an M.Tech in VLSI design, along with NIELIT O and A Level certifications. He also has an M.A. in Sociology and a B.Ed. He has been writing troubleshooting guides for Android phones, TVs, apps and gadgets on Gossipfunda since 2018, and teaches mathematics.


