Abstract. This paper studies the decision of whether to apply for a patent in a dynamic model in which …rms innovate stochastically and independently. In the model, a …rm can choose between patenting and maintaining secrecy to protect a successful innovation. I consider a legal environment characterized by imperfect patent protection and no prior user rights. Thus, patenting grants probabilistic protection, and secrecy is e¤ectively maintained until rivals innovate. I show that (1) …rms that innovate early are more inclined to choose secrecy, whereas …rms that innovate late have a stronger tendency to patent; (2) the incentives to patent increase with the innovation arrival rate; and (3) an increase in the number of …rms may cause patenting to occur earlier or later, depending on the strength of patent protection. The socially optimal level of patent protection, which balances the trade-o¤ between the provision of patenting incentives and the avoidance of deadweight loss caused by a monopoly, is lower with a higher innovation arrival rate or a larger number of …rms.