arduino mega adk voltmeter

Hi all,
I saw that it is possible to measure votage with arduino analog pins.I understood most of the hardware but I still dont understand how to calculate the appropriate is the article i saw
I want to thank you in advance for your time. :slight_smile:

See Voltage divider - Wikipedia

It's a pretty simple concept and definitely worth your time to learn it fully.