A certain option might be enabled that is limiting your RAM capacity. To fix the issue: Reboot your Raspberry Pi and keep pressing ESC. The Pi will boot into UEFI. Click on "Device Manager" and then "Raspberry Pi Configuration." Select Advanced Configuration and then change the "Limit RAM to 3GB" setting to Disabled.