

Let B be the magnitude of the magnetic field along the loop of radius r, in toroid.
So, length of loop, L=2πr
If N is the total number of turns in the toroid and I is the current in toroid,then total current enclosed by the loop= NI
Now, applying amperes circuital law,
B×2πr = μo ×NI
B= μo ×NI / 2πr
Now, if r be the average radius of toroid and n the number of turns per unit length, then
N= 2πrn
B= μo nI
