LVGL memory calculator

An LVGL screen that runs fine in the simulator can still run out of memory on the board. Images are usually the reason: a 100×100 picture counts as about 40 KB on its own. Type in roughly what your UI has and see where the RAM goes.

Widgets on all screens
Images

Estimated RAM: 103.9 KB

25 widgets on 3 screens, 480×320 px. A minimum: the heap, font cache and task stacks add more.

Widgets and screens6.9 KB
Images78.2 KB
Draw buffers (2 × 10 lines)18.8 KB
Wi-Fi + MQTT0 B
Full frame buffer (RGB565)300.0 KB

The frame buffer isn't in the total: when a board needs one, it usually sits in PSRAM.

Design the UI next

Build LVGL screens and events in the browser without code, then export an Arduino project.

See how the editor works

How it counts

It's the same estimate the LCD Ultra Pro™ editor shows for a project: the LVGL 8.4 object size for each widget, an average of six style properties, the text, and a little allocator overhead per allocation. Images are counted at 4 bytes a pixel, two draw buffers of ten lines each, and about 55 KB for Wi-Fi with MQTT.

Treat the result as a floor. The font cache, FreeRTOS task stacks and the C runtime come on top, and they differ between projects. If the estimate is already close to the board's SRAM, it won't fit as it is. The board finder can show you boards with 8 MB of PSRAM.

More free tools