The Holy Spirit is as much God as The Father and Jesus. The reasons for this are because He's called God, credited with the things God alone has done, does the sort of things only God does, and is given the same status by which we identify Jesus as God. The Holy Spirit is not Jesus or the Father because He is distinguished from them, send by them, and serves purposes in the world that aren't performed by the Son or Father.