Hello, nnhubbard!

I need to calculate my elevation gain and loss.

Say I started at 1000 feet above sea level.

Then I go on a hike and go up and down hilly terrain.

I might reach some different elevations:

. .

Is there a calculation or formula that I can use to determine my total gain and loss

based on my starting elevation of 1000?

We can take the difference of consecutive elevation and see our progress.

. . [Positive = hiking uphill. .Negative = hiking downhill.]

. .

We find that we hiked a total of 560 feet uphill

. . and a total of 560 feet downhill.

We should not be surprised that the net distance is.zero

After all, we ended at the same elevation that we started from.