The Good Line-Height is a Figma plugin by designer Fran Perez that calculates a mathematically consistent line-height for any font size against a baseline grid, so text rows line up cleanly across a type scale.
It automates a fiddly manual calculation - feed it a font size, ratio, and grid row height, and it returns the line-height that keeps everything on-grid.
Fits designers building a typographic scale in Figma who want their line-heights to align to a baseline grid rather than eyeballing it.
Free to install and use from the Figma Community; it only works inside Figma, not as a standalone web calculator.
Line height and baseline grid resource.