# How to calculate page size of virtual memory

im new at OS and I want to know how to calculate the page size of this virtual memory system?

Information:

• Physical Memory - 32 KB
• Virtual Address - 16 bit
• Offset - 12 bits

Current content of the page table is this:

I just want a formula for this and not the answer. Thank you

• What did you try? Where did you get stuck? If you understand how virtual memory works, you won't need to memorize a formula because you'll be able to figure it out for yourself. – David Richerby Apr 11 '17 at 12:01
• @DavidRicherby actually i didnt get stuck or something. I just need the calculation for it like 2 to the power of 32 something like that. I really got no idea. And im not memorising it, i want to learn how to calculate it – Blair Apr 11 '17 at 14:10

So, if you have aN 8-bit offset, how many different bytes on a page can you reference? $2^{8}$