List of the official iOS keyboards’ heights (and how to calculate them)

Federica Benacquista
2 min readDec 26, 2020

Recently I have been working on a custom keyboard extension.

I wanted it to be of the same size of the original iOS keyboard. I noticed that almost all of the devices have different keyboard heights and I thought that affected the way the keyboard appeared. But here’s the plot twist: the view that contains the letters is always of the same size!

This means that the height difference comes from the bottom safe area.

The universal height of the letters view on iPhone is of 216 points in portrait and 162 points in landscape. On iPad it’s 264 points in portrait and 352 points in landscape (these heights don’t include top the number row).

To be honest, I suspect some devices vary of +10 points but I’m still trying to figure this all out!

As regards the full values, since I couldn’t find a list of them all, I decided to calculate them by myself.

For each device I calculated the height in portrait and landscape mode both with the toolbar on and off.

Note that you’ll only be using those values when you’ll need to know the dimension of the keyboard before you layout the view or for graphic purposes.

If you need to know the height of the keyboard after you layout the view then scroll down to the second part of the article.



Federica Benacquista

I’m a self taught iOS developer and soon to be entrepreneur. I like to explain tricky concepts as easily as possible and it’s exactly what I do here.