As we know when we treat a protein with SDS, it breaks non covalent bonds to form primary structure. But how it adds negative charges uniformly on all constituent amino acids?
In SDS-PAGE, proteins are separated in a palyacrylamide gel based on their molecular weight. Proteins are amphoteric molecules, i.e. they have both positive and negative charges. To make them move in a single direction, a uniform negative charge is created on them. https://www.sciencedirect.com/topics/nursing-and-health-professions/polyacrylamide-gel-electrophoresis
The SDS–protein complexes all contain about the same negative charge because the SDS swamps out all of the protein charges. Since the charges are all the same, the proteins all separate from one another strictly on the basis of their sizes. https://www.sciencedirect.com/topics/pharmacology-toxicology-and-pharmaceutical-science/sodium-dodecyl-sulfate