In this study, a problem of offsetting enclosed profiles related to pocket milling in CNC has been approached by an analytical and new method is presented. In this algorithm, pocket milling properties are read from dxf file structure. Offset lines and arcs are calculated by analytical equations of items formed profile. Then, all of the items are trimmed at the intersection points of offset for simplifying unnecessary items. Inaccurate offset items are thrown away, which would cause incorrect tool paths and then offsetting operation is ended. The algorithm works with dxf files obtained from AutoCAD 2004 (R) and is applied using Delphi (R) program. The developed offsetting algorithm has been approved in different applications.