McElroy is an Irish patronymic surname ("Mac" = "son of") originating from Mac Giolla Ruaidh in County Donegal, Ireland.