Run MATLAB code online, free

RunMat runs MATLAB-language code in a browser tab, on your own computer. Write a script, run it and see the plot beside the code.

  • No account, install or MATLAB license
  • No monthly hour limit: the code runs on your own computer
  • 2,100+ MATLAB functions, with 2D and 3D plots
Download RunMat
Or start from an empty editor
The RunMat editor in a browser tab with a damped radial wave script. The cursor changes the wave number in sin(3*R) to 8, runs the script, then orbits and zooms the redrawn 3D surface.
Example: a damped radial wave in the RunMat editor. Changing sin(3*R) to sin(8*R) and running again redraws the surface, which then turns and zooms with the mouse.

Used by students, engineers and researchers around the world

10,000+ users
10,000+ users
130+ countries
130+ countries

Start from an example

Each example opens in the browser editor with its result already drawn. Change a number and run it again.

Four panels summarizing a test run under one title, rendered by RunMat

Four-panel figure

A test run summarized with subplot and sgtitle.

A damped oscillation solved with ode45 inside its exponential decay envelope, rendered by RunMat

Damped oscillator

ode45 against the closed-form solution.

A single-run FFT magnitude above a Welch PSD estimate of the same signal, rendered by RunMat

Welch against a single FFT

See what averaging does to the noise floor.

The first three mode shapes of a chain of six masses, rendered by RunMat

Vibration modes

Natural frequencies of a spring-mass chain from eig.

Noisy decay data with an exponential fit above a stem plot of the residuals, rendered by RunMat

Fit an exponential decay

Amplitude, rate and offset with bounds and 95% intervals.

Plot galleryAll math examples

RunMat and MATLAB Online

MATLAB Online is MathWorks' own MATLAB in the browser. RunMat runs the same language on the computer in front of you, so there are no hours to count.

To start
RunMatOpen the editor and run. No account needed.
MATLAB OnlineSign in with a MathWorks Account. Basic access is free with an account.
Time limits
RunMatNone. Scripts run for as long as they need.
MATLAB OnlineBasic: 20 hours per calendar month, 15 minutes of continuous run time and a 15-minute idle timeout. With a license: unlimited hours, 90 minutes and 60 minutes.
Where code runs
RunMatIn the browser tab, on your own CPU and GPU. It keeps running offline once the page has loaded.
MATLAB OnlineOn MathWorks computers, through the browser.
Functions and products
RunMat2,100+ built-in functions across math, statistics, signal processing, optimization, data and plotting.
MATLAB OnlineBasic: 10 commonly used products, including Simulink. With a license: the products on that license.
Storage
RunMatBrowser projects stay on the device. Sign in to keep cloud projects, with file history and sharing.
MATLAB OnlineMATLAB Drive: 5 GB on Basic, 20 GB with a license.
Price
RunMatFree for:
  • Individuals, including freelancers
  • Students and faculty at an academic institution, for teaching or research there
  • Contributors to an open-source project, for work on that project
  • Organizations with 250 or fewer people and US$10M or less in annual revenue
  • Anyone, for non-production use
Larger organizations use Professional, at $99 per person per month in the US or the local equivalent.
MATLAB OnlineBasic is free. Full access comes with a MATLAB license.

When MATLAB Online is the better choice

Use MATLAB Online when a course or project depends on Simulink, App Designer or a toolbox RunMat doesn't cover yet, or when your school's license already includes it and you need MathWorks support.

Price, license and GPUs side by side

The full comparison with desktop MATLAB covers license cost, GPU support and simulation.

RunMat vs MATLAB

MATLAB Online facts are from MathWorks' MATLAB Online versions and MATLAB Online pages, checked November 4, 2026.

What runs in RunMat

Existing .m scripts and functions run as written, with MATLAB's function names and behavior and no toolboxes to install.

The MATLAB language

  • Scripts, functions with multiple outputs, classes and packages
  • Matrices, cell arrays, structs, strings, tables and timetables
  • if, for, while, switch, try and anonymous functions
  • Size and type errors shown before the code runs

Language coverage

Math and engineering

  • Linear algebra, eig, svd and sparse matrices
  • ode45, ode15s, integral and fzero
  • fft, filters, spectra and statistics
  • Curve fitting, interpolation and optimization

Math in RunMat

Plots and data

  • plot, scatter, histogram, surf, contour and 30 more plot types
  • Subplots, legends, colorbars and an interactive 3D camera
  • CSV, text, spreadsheet and MAT-files with readtable, readmatrix, load and save
  • More than 2,100 functions in the reference, each with runnable examples

Function reference

Not supported yet

  • Simulink and other block-diagram models
  • MathWorks-specific apps and file formats, such as App Designer apps (.mlapp)
  • Specialized MathWorks toolboxes beyond RunMat's built-in functions

Large arrays run on the GPU

RunMat compiles each script and fuses chains of array operations, without needing code changes. As a result, your code runs on the GPU automatically where that is found to be faster. In the browser it uses WebGPU; the desktop app and the command line use NVIDIA, AMD, Intel and Apple GPUs.

Arrays stay on the GPU between steps, so a loop over a million-element array keeps its data on the device.

GPU accelerationBenchmarks

Monte Carlo option pricing, 256 steps · median wall time

PathsRunMat (GPU)PyTorch (GPU)NumPy (CPU)
250,000109 ms824 ms4,066 ms
500,000136 ms900 ms8,207 ms
1,000,000188 ms894 ms16,092 ms
2,000,000298 ms1,109 ms32,305 ms
5,000,000607 ms1,698 ms79,895 ms

Apple M2 Max, run 2025-11-21. Source and harness in the RunMat repository.

Measured with the RunMat command line on the published benchmark suite, outside the browser.

Questions

01Can I run MATLAB code online for free?

Yes. Open the RunMat editor in a browser tab and run MATLAB-language code with no account, no install and no MATLAB license. RunMat is free for individuals, including freelancers; students and faculty at an academic institution, for teaching or research there; contributors to an open-source project, for work on that project; organizations with 250 or fewer people and US$10M or less in annual revenue; and anyone, for non-production use. RunMat is licensed under the Business Source License 1.1, and each version converts to Apache 2.0 three years after it is first published.

LicensePricingFor students and educators

02Do I need an account or a MATLAB license?

No. Code runs as soon as the editor opens. Signing in adds cloud projects that sync between devices, file history, sharing and the built-in agent's weekly credits.

03Is RunMat the same as MATLAB?

No. RunMat is its own runtime for the MATLAB language: it reads .m files and runs them with MATLAB's function names and behavior. RunMat is built by Dystr, Inc. and is not affiliated with or endorsed by The MathWorks, Inc.

04Is there a time limit?

No. RunMat counts no hours for MATLAB code and has no session or idle timeout, because the code runs on your own computer. Weekly allowances cover only AI use and finite element simulations.

Usage and limits

05Can I run my own .m files?

Yes. Paste a script into a new file, or create files and folders in the browser project. For a whole repository, open the folder in the desktop app; the command line's runmat check lists any function or language feature RunMat doesn't support yet before you run anything.

Language coverageProjects

06Does it draw plots?

Yes. Line, scatter, bar, histogram, contour, surface and 3D plots draw in the browser, and 3D figures can be rotated, zoomed and panned. Subplots, legends and colorbars work as in MATLAB.

Plot gallery

07Which toolboxes and features are supported?

RunMat has 2,100+ built-in functions covering linear algebra, differential equations, signal processing, statistics, curve fitting, optimization, data files and plotting, with no separate toolboxes to install. Simulink, App Designer apps and some specialized toolbox functions are not supported.

Function reference

08Is my code private?

Code runs on your device, and nothing is uploaded to run a script. Files you save to a cloud project are stored on RunMat's servers. When you use the built-in agent, the files and results it needs are sent to the AI model provider.

09Does it use my GPU?

Yes. In browsers with WebGPU, RunMat moves large array operations to the GPU automatically. The desktop app and the command line use NVIDIA, AMD, Intel and Apple GPUs, with no code changes.

GPU acceleration

10Does it work offline?

Yes. Once the editor has loaded, MATLAB code keeps running without a connection. The desktop app and the command line run fully offline, with projects on your own disk.

Download

11How is RunMat different from GNU Octave?

Both run MATLAB-style code. RunMat compiles it, runs in the browser as well as on the desktop, and moves array math to the GPU. Octave is a long-established desktop program with its own packages.

MATLAB vs Octave

Run your first script now

Download RunMat