Over $3000 capital loss

Hello, I had about $4000 in capital losses on my stocks last year. Those were the only capital gain/loss I had. When I added it up in schedule D and my 8949 forms they came out to be $4000. When I report it in line 7 of the 1040(capital gain and losses) do I use that -$4000 or do I use -$3000 since I heard the most you can deduct is -$3000. I want to file independently, so I did not want to use the software.