I would recommend painting before installation to avoid unpainted gaps. However, do not apply too thick a layer of paint as it can be difficult to assemble them. I got hold of pre-painted beadboard and avoided both problems that way, but it's a bit late for that tip if you've already made the purchase.