Windows 11 can run on a computer with 4 GB of RAM.
However, while Windows 11 can technically run on a computer with only 4 GB of RAM it will be and is a terrible experience.
I bought one of those cheaper HP laptop computers from Walmart a few years ago with 4 GB of RAM and Windows 11 and it has always been terribly slow and started crashing a lot.
However the computer itself is still fine, but I installed Linux Mint Cinnamon operating system on it and the difference is so much better.
If using Windows 11, you should have at least 6 GB or even 8 GB minimum but 16 GB is even better for Windows 11.
Windows 11 operating system also takes up nearly 4 GB of RAM itself just to run, and my computer with Windows 11 was only showing 299 MB of ram left after windows was running.