This paper addresses some questions about dimension theory for Pminimal structures. We show that, for any definable set A, the dimension of A\A is strictly smaller than the dimension of A itself, and that A has a decomposition into definable, pure-dimensional components. This is then used to show that the intersection of finitely many definable dense subsets of A is still dense in A. As an application, we obtain that any definable function f : D ⊆ K m → K n is continuous on a dense, relatively open subset of its domain D, thereby answering a question that was originally posed by Haskell and Macpherson.In order to obtain these results, we show that P -minimal structures admit a type of cell decomposition, using a topological notion of cells inspired by real algebraic geometry.