To get the total cost of owning a car, calculate the cost of gas per mile, operating costs and ownership costs. Operating costs typically include the cost of gas per mile and maintenance fees. Ownership costs include taxes, fees, insurance, financing and depreciation.