Consider the following LaTeX document:
\documentclass{article}
\usepackage[footskip=0pt]{geometry}
\begin{document}
Hello, world!
\end{document}
This results in the following pdf rendering (the file's margins were trimmed in the preparation of the image):
To the best of my understanding, supported by this comment by @Martin Scharrer, the footer's height is determined by the footskip option. However, observe that despite setting the footskip option to 0pt, a page number is visible. Doesn't the page number "live" inside the footer?
To press the latter point further, consider the following slightly modified version of the above document:
\documentclass{article}
\usepackage[footskip=-10pt,showframe]{geometry}
\usepackage{lipsum}
\begin{document}
\lipsum[1-7]
\end{document}
The pdf rendering of this document is as follows (again, the margins were trimmed in the preparation of the image):
The image shows that the baseline of the footer is strictly above the bottom of the textarea, and yet the page number appears below the textarea. So where does the page number live?


showframeto thegeometry\usepackagecommand, you'll see that the page number appears below the bottom of the textarea, even though thefootskipoption is set to0pt, which would imply that the footer's baseline should coincide with the bottom of the textarea. If you additionally change thefootskipto-10pt, this "contradiction" is even more pronounced, since the page number still appears below the text area, even though the footer's baseline is strictly above the bottom of the text area. – Evan Aad Jun 11 '17 at 15:39footskipis just a distance to the footer saying how much to space it off from the text body. – Andrew Swann Jun 11 '17 at 15:47footskip=0ptmeans that the footer's baseline coincides with the bottom of the textarea, right? Then how come does the page number appear below the textarea? – Evan Aad Jun 11 '17 at 15:49source2esays. But trying this in anarticleit shows that it is to the top of the footer box (e.g. usegeometrywith itsshowframeoption) – Andrew Swann Jun 11 '17 at 16:04\footskipis used just in one place, to set\baselineskiplocally when adding the footer:\baselineskip \footskip– David Carlisle Jun 11 '17 at 16:09showframe. This only makes the problem more perplexing. – Evan Aad Jun 11 '17 at 16:14