Summary Decline-curve analysis (DCA) is the industry standard to predict hydrocarbon production to then estimate the net present value (NPV) of unconventional wells. Conventional DCA assumes the flowing bottomhole pressure (BHP) is constant. This is an unrealistic assumption for many unconventional wells that can lead to incorrect estimates of ultimate recovery and thus erroneous NPV calculations. This work illustrates the application of a novel technique that combines variable BHP conditions with decline-curve models [Rapid rate-transient analysis (RTA)] to estimate the NPV and select the optimal cluster spacing and number of fractures for a given well. We compare the results of DCA and Rapid RTA to estimate and optimize the cluster spacing for a tight oil and shale gas well. The Rapid RTA results show marked differences in terms of the shape and the optimal value of the NPV function from the simpler DCA method. For the two cases illustrated, DCA results are a direct consequence of the rate-time analysis failing to correctly detect the onset of boundary-dominated flow (BDF). In contrast, Rapid RTA correctly detects the onset of BDF and presents a defined maximum value of the NPV vs. cluster spacing (number of fractures) function. This optimal value is a trade-off between the fracture treatment cost, the speed of recovery of hydrocarbons, and the value of money with time (discount rate). The major contribution of this work is the implementation of the Rapid RTA technique allowing fast computation of pressure-rate-time analysis and NPV calculations with computational times comparable with DCA for optimizing fracture cluster spacing and the total number of fractures of unconventional wells. We have developed a web-based application to give readers a hands-on experience of this new technique and to analyze and optimize the NPV of unconventional wells.