Normally, the magnetic field density in a solenoid is generated by a constant DC current source. A photovoltaic (PV) module is also a DC current source. The output current of PV module depends on the solar irradiance and temperature. The PV module generates a higher current on the constant temperature and higher solar irradiance. Inversely, it generates a lower current on the constant temperature and lower solar irradiance. Thus, it is important to study the output current of PV module related to the magnetic field in a solenoid. The daily data of solar irradiance and temperature are recorded by Vantage Weather Station Pro2 in Universiti Malaysia Perlis (UniMAP) throughout the year 2015. The performance of PV module (maximum peak point current) is simulated using PSpice software. The daily maximum peak point current of PV module is applied into a formulation of magnetic field density to obtain the daily maximum magnetic field density generated in a solenoid. The result shows that the higher maximum peak point current generated by PV module will produce the higher magnetic field density in a solenoid.