Arduino mega 2560 Analog max reference voltage
The default reference should be 5V, fed from Vcc to Aref by way of an internal reference select multiplexer. If might be less than 5V if the board is powered from USB.



Measure your 5V source - is that varying as well?