You can use a compass or an already identified pole of another magnet. And can also use eletrical magnetic pole identifier to identify the pole of magnets, it looks like a pen.