When the flan is finished baking, allow it to cool for 20 minutes on a cooling rack before popping it out of the pan.