The present invention is an edging and trimming apparatus for attachment to lawn mowing machines for use to edge and trim grass and weeds. A gear assembly enclosed in a housing may have a drive gear attached to a drive shaft of a lawn mower and may be engaged with a driven gear attached to a driven end of a shaft. A socket end of the shaft may be positioned in a hole in a side wall of a blade housing and the shaft may be slidably attached to the blade housing by a first bracket and a second bracket to position the shaft approximately orthogonal to the drive shaft. A head coupling assembly with a trimmer head may be releasable attached to said socket end.