Let K be a field and let U T n = U T n (K) denote the associative algebra of upper triangular n × n matrices over K. The vector space of U T n can be given the structure of a Lie and of a Jordan algebra, respectively, by means of the new products: [a, b] = ab − ba, and a • b = ab + ba. We denote the corresponding Lie and Jordan algebra by U T − n and by U T + n , respectively. If G is a group, the G-gradings on U T n were described by Valenti and Zaicev (Arch Math 89(1):33-40, 2007); they proved that each grading on U T n is isomorphic to an elementary grading (that is every matrix unit is homogeneous). Also Di Vincenzo et al. (J Algebra 275(2):550-566, 2004) classified all elementary gradings on U T n. Here we study the gradings and the graded identities on U T − n and on U T +