We give the stratification by the symmetric tensor rank of all degree *d* ≥ 9 homogeneous polynomials with border rank 5 and which depend essentially on at least five variables, extending previous works (A. Bernardi, A. Gimigliano, M. Idà, E. Ballico) on lower border ranks. For the polynomials which depend on at least five variables, only five ranks are possible: 5, *d* + 3, 2*d* + 1, 3*d* − 1, 4*d* − 3, but each of the ranks 3*d* − 1 and 2*d* + 1 is achieved in two geometrically different situations. These ranks are uniquely determined by a certain degree 5 zero-dimensional scheme *A* associated with the polynomial. The polynomial *f* depends essentially on at least five variables if and only if *A* is linearly independent (in all cases, *f* essentially depends on exactly five variables). The polynomial has rank 4*d* − 3 (resp. 3*d* − 1, resp. 2*d* + 1, resp. *d* + 3, resp. 5) if *A* has 1 (resp. 2, resp. 3, resp. 4, resp. 5) connected component. The assumption *d* ≥ 9 guarantees that each polynomial has a uniquely determined associated scheme *A*. In each case, we describe the dimension of the families of the polynomials with prescribed rank, each irreducible family being determined by the degrees of the connected components of the associated scheme *A*.