We prove Lp quantitative differentiability estimates for functions defined on uniformly rectifiable subsets of the Euclidean space. More precisely, we show that a Dorronsoro-type theorem holds in this context: the Lp norm of the gradient of a Sobolev function f:E→R is comparable to the Lp norm of a new square function measuring both the affine deviation of f and how flat the subset E is. A corollary dealing with extensions and traces of Sobolev functions may be found in a companion article.