This paper proposes a magnetic levitation model using PID control. The model uses permanent magnets and electromagnets to generate magnetic levitation force and maintain a stable gap between the levitating object and the levitator. Simulation results show that while the initial model could not maintain a stable gap, adding PID control allowed the actual position to follow the reference position closely. Further simulations adding mass in stages showed that the PID controlled model could maintain the gap width, though a small 1mm difference occurred with the largest added mass of 150g. The study provides a preliminary simulation of a magnetic levitation system that could be further developed to maintain the desired gap even with added actual mass loads.