A cost-benefit analysis measures the costs and benefits of a proposed project or action to determine if it is financially viable. It involves specifying the project, quantifying its inputs and outputs, valuing the associated social costs and benefits in monetary terms, and comparing the benefits to the costs. If the benefits outweigh the costs, the project has a positive cost-benefit ratio and is considered financially worthwhile. The analysis is used by governments to evaluate social and economic decisions.