The paper presents a two dimensional finite element based solver for static magnetic field problems. The application has been written in C programming language. Magnetic vector potential of some reference models have been calculated by the help of two environments. The first one is the MATLAB environment and the second one is the C programming language based finite element code. The simulation results of the two environments were compared to each other focusing on the magnetic vector potential and the simulation time. Differences of the simulation results are showed in this paper, as well.