In the Standard Model of electroweak interactions of particle physics, the weak hypercharge is a quantum number relating the electric charge and the third component of weak isospin. It is frequently denoted and corresponds to the gauge symmetry U(1).^{[1]}^{[2]}
It is conserved (only terms that are overall weakhypercharge neutral are allowed in the Lagrangian). However, one of the interactions is with the Higgs field. Since the Higgs field vacuum expectation value is nonzero, particles interact with this field all the time even in vacuum. This changes their weak hypercharge (and weak isospin T_{3}). Only a specific combination of them, (electric charge), is conserved.
Mathematically, weak hypercharge appears similar to the GellMann–Nishijima formula for the hypercharge of strong interactions (which is not conserved in weak interactions and is zero for leptons).
In the electroweak theory SU(2) transformations commute with U(1) transformations by definition and therefore U(1) charges for the elements of the SU(2) doublet (for example lefthanded up and down quarks) have to be equal. This is why U(1) cannot be identified with U(1)_{em} and weak hypercharge has to be introduced.^{[3]}^{[4]}
Weak hypercharge was first introduced by Sheldon Glashow in 1961.^{[4]}^{[5]}^{[6]}
Weak hypercharge is the generator of the U(1) component of the electroweak gauge group, SU(2)×U(1) and its associated quantum field B mixes with the W^{3} electroweak quantum field to produce the observed ^{}
_{}Z^{}
_{} gauge boson and the photon of quantum electrodynamics.
The weak hypercharge satisfies the relation
where Q is the electric charge (in elementary charge units) and T_{3} is the third component of weak isospin (the SU(2) component).
Rearranging, the weak hypercharge can be explicitly defined as:
Fermion family 
Leftchiral fermions  Rightchiral fermions  

Electric charge Q 
Weak isospin T_{3} 
Weak hyper charge Y_{W} 
Electric charge Q 
Weak isospin T_{3} 
Weak hyper charge Y_{W}  
Leptons  ^{} _{}ν^{} _{e}, ^{} _{}ν^{} _{μ}, ^{} _{}ν^{} _{τ} 
0  +1/2  −1  ν_{R May not exist }  0  0  0 
^{} _{}e^{−} _{}, ^{} _{}μ^{−} _{}, ^{} _{}τ^{−} _{} 
−1  −1/2  −1  ^{} _{}e^{−} _{R}, ^{} _{}μ^{−} _{R}, ^{} _{}τ^{−} _{R} 
−1  0  −2  
Quarks  ^{} _{}u^{} _{}, ^{} _{}c^{} _{}, ^{} _{}t^{} _{} 
+2/3  +1/2  +1/3  ^{} _{}u^{} _{R}, ^{} _{}c^{} _{R}, ^{} _{}t^{} _{R} 
+2/3  0  +4/3 
d, s, b  −1/3  −1/2  +1/3  ^{} _{}d^{} _{R}, ^{} _{}s^{} _{R}, ^{} _{}b^{} _{R} 
−1/3  0  −2/3 
where "left" and "right"handed here are left and right chirality, respectively (distinct from helicity). The weak hypercharge for an antifermion is the opposite of that of the corresponding fermion because the electric charge and the third component of the weak isospin reverse sign under charge conjugation.
Interaction mediated 
Boson  Electric charge Q 
Weak isospin T_{3} 
Weak hypercharge Y_{W} 

Weak  ^{} _{}W^{±} _{} 
±1  ±1  0 
^{} _{}Z^{0} _{} 
0  0  0  
Electromagnetic  ^{} _{}γ^{0} _{} 
0  0  0 
Strong  ^{} _{}g^{} _{} 
0  0  0 
Higgs  ^{} _{}H^{0} _{} 
0  −1/2  +1 
The sum of −isospin and +charge is zero for each of the gauge bosons; consequently, all the electroweak gauge bosons have
Hypercharge assignments in the Standard Model are determined up to a twofold ambiguity by requiring cancellation of all anomalies.
For convenience, weak hypercharge is often represented at halfscale, so that
which is equal to just the average electric charge of the particles in the isospin multiplet.^{[8]}^{[9]}
Weak hypercharge is related to baryon number minus lepton number via:
where X is a conserved quantum number in GUT. Since weak hypercharge is always conserved within the Standard Model and most extensions, this implies that baryon number minus lepton number is also always conserved.
Hence neutron decay conserves baryon number B and lepton number L separately, so also the difference B − L is conserved.
Proton decay is a prediction of many grand unification theories.
^{} _{}p^{+} _{} 
→  ^{} _{}e^{+} _{} 
+  ^{} _{}π^{0} _{} 

└→  2^{} _{}γ^{} _{} 
Hence this hypothetical proton decay would conserve B − L , even though it would individually violate conservation of both lepton number and baryon number.