Don't know about the minimum part, but potential energy is calculated using the following formula:

You need to know the planet (or simply the gravity of the planet), the height of the roller coaster car, and the mass of the car.
___________________________________________________________
Like this answer? PM me for more awesome answers! - Boodle