The centroid of a triangle is the intersection of the medians. The centroid divides each median in a ratio of 2:1.
(x1+x2+x3)/3,(y1+y2+x3)/3
This tool will help you dynamically to calculate the centroid of a triangle. Calculating Analytical is made easier.