Gradualizer review
A practical fit for adding type checks to Erlang projects without annotating everything at once.
Reviewed by iTechGuides Editors · Editorial team · Updated Dec 2026
If you want to add type checking to an existing Erlang codebase without annotating everything at once, Gradualizer gives you a starting point. The open-source checker uses Erlang’s existing type specifications to check function bodies against their declared types and call arguments against the callee’s specifications. That makes it a fit for solo developers and small teams that want to introduce checks gradually rather than make full annotation a prerequisite.
Type inference is optional. Turn it on when you want the checker to infer types from literals and other language constructs instead of relying only on function specifications. You can also supply custom type specification overrides or disable the built-in OTP overrides. From the command line, Gradualizer accepts both Erlang source and compiled BEAM files, but BEAM files need debug information. Checking source gives you diagnostics with line and column locations, which helps you find the code that triggered a report.
For teams using Rebar3, the plugin can check a project or target selected apps in an umbrella project. The Erlang library API offers another route: you can check modules or in-memory abstract syntax trees from Erlang code. Elixir teams can run the checker through Mix, but they’ll need the separate Gradient frontend. Choose Gradualizer if you want to check Erlang code against its type specs and control which apps are in scope. Look elsewhere if your project needs whole-program flow analysis: checking every file in a project is not the same as analyzing how values flow across the program.
Gradualizer pros and cons
- Where it wins
- Checks function bodies and call arguments against Erlang type specs.
- Lets you check selected apps in a Rebar3 umbrella project.
- Reports line and column locations in source diagnostics.
- Where it doesn't
- BEAM checks require files compiled with debug information.
- Project checks do not perform whole-program flow analysis.
- Elixir checking requires Gradient, a separate frontend.
Gradualizer fact sheet, pricing and score →
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update