An automatic system for measuring and machining ends of pipe elements, characterized by comprising: measuring equipment that has: an internal laser sensor to measure the inner diameter of the pipe end on at least one section of the pipe length; an external laser sensor to measure the outer diameter of the pipe end on at least one section of the pipe length; a machining station that has: at least one machining tool for machining the inner diameter of the pipe and at least one machining tool (12, 13) for machining the outer diameter of the pipe, the machining tools being operated independently of each other; an electronic interface central between the measuring equipment and the machining tools, which contains records of critical values of outer and inner diameters for the pipe end, wherein the electronic interface central is adapted to receive the measured values of outer and inner diameters from the measuring equipment, compare them with the critical values of outer and inner diameters, and to control the operation of the machining tools (12, 13, 14) for machining the inner and outer diameters as a function of the result of the comparison, so that the real values of the outer and inner diameters of the pipe end will come close to the critical values of the outer and inner diameters. an internal laser sensor to measure the inner diameter of the pipe end on at least one section of the pipe length; an external laser sensor to measure the outer diameter of the pipe end on at least one section of the pipe length; a machining station that has: at least one machining tool for machining the inner diameter of the pipe and at least one machining tool (12, 13) for machining the outer diameter of the pipe, the machining tools being operated independently of each other; an electronic interface central between the measuring equipment and the machining tools, which contains records of critical values of outer and inner diameters for the pipe end, wherein the electronic interface central is adapted to receive the measured values of outer and inner diameters from the measuring equipment, compare them with the critical values of outer and inner diameters, and to control the operation of the machining tools (12, 13, 14) for machining the inner and outer diameters as a function of the result of the comparison, so that the real values of the outer and inner diameters of the pipe end will come close to the critical values of the outer and inner diameters. at least one machining tool for machining the inner diameter of the pipe and at least one machining tool (12, 13) for machining the outer diameter of the pipe, the machining tools being operated independently of each other; an electronic interface central between the measuring equipment and the machining tools, which contains records of critical values of outer and inner diameters for the pipe end, wherein the electronic interface central is adapted to receive the measured values of outer and inner diameters from the measuring equipment, compare them with the critical values of outer and inner diameters, and to control the operation of the machining tools (12, 13, 14) for machining the inner and outer diameters as a function of the result of the comparison, so that the real values of the outer and inner diameters of the pipe end will come close to the critical values of the outer and inner diameters.