The normal stress in a beam is computed from the flexure formula:

where y is the distance from the neutral axis to any point of interest and I is the area moment of inertia for the shape about the centroidal axis (i.e., the centroidal axis about which the bending moment acts).