Below is the graph of distance fallen against square of time for a freely falling body :

The slope is half the acceleration due to gravity.
Thus, the value of acceleration due to gravity (g) can be obtained by doubling the slope of the S - t2 graph for a freely falling body.