This paper presents a methodology for allocating transmission costs to generators and loads using the z-bus matrix. It proposes three methods: the zbus method, zbus avg method, and a newly developed technique, with a case study on the IEEE 24-bus system to illustrate their effectiveness. Analysis indicates that all methods favor allocating costs to proximate generators, while also considering the proximity effect for peripheral buses.