Gcode is the center of extrusion and extrudes left and right. So gcode size must be external width - extrusion width for correct result. You will normally get an extra error from wrong extrusion width/height/steps per mm from belt stretching/wrong steps per mm in extruder/jitter while extruding. That should be much less then 1mm.