The University of North Carolina’s cost of attendance provides accurate information in a detailed structure of the cost that students need to pay for the program they have enrolled for. The cost of attendance includes various other university-related costs such as books & supplies, room & board, and other expenses along with tuition and fee.
The cost of attendance at UNC-Chapel Hill vary based on the state you belong to. The difference between the costs is quite drastic, which is a consequence to the different tuition cost for in-state and out-state student. An in-state student pays tuition of $8,987, whereas an out-state student pays tuition of $35,170, leading to in-state cost of attendance being $23,811 and out-state cost of attendance being $49,994.
One thing to note is that these are approximate and average costs that the students are to incur while completing their term at the university. To know exact figures for you, you can use UNC-Chapel Hill's budgeting calculator.