Subaru quoted me for $1700 or $1800 to do the head gaskets on my legacy so just take that into account. im sure it could be done cheaper and since you are already pulling the engine you might be able to take it to someone and get a major discount if you aren't comfortable doing it yourself.