Many recipes typically list 1/4 or 1/2 cup of chopped onions among the ingredients needed. Go ahead and chop up the onions you purchased and measure out 1/4 cup portions.
Wrap each portion in saran or plastic wrap then freeze. Once frozen solid, I generally store the little packets of onions in a plastic container in the freezer.