First off if it's at all severe or lasts when you get off the bike - go and see a Doctor, preferably one who rides.
Possible causes - pedalling in too high a gear or bike set up.
__________________
Currently riding an MTB with a split personality - commuting, touring, riding for the sake of riding, on or off road :)