Plane fitting for arbitrary number of points

I want to come up with a function, which when given a set of points of arbitrary length, will return a plane which best fits my data. I have tried using FindFit for 5-dimensional data, but I get the following error:

FindFit::fitc: Number of coordinates (1) is not equal to the number of variables (3).