Bài báo đề xuất giải pháp toán học trong việc phân phối chi phí cho độ tin cậy phần mềm: ứng dụng quy hoạch nguyên nhị phân tìm độ tin cậy lớn nhất của các module mua và ứng dụng quy hoạch phi tuyến tìm độ tin cậy lớn nhất của các module phát triển trong công ty. Nghiên cứu này đã giải quyết bài toán tìm độ tin cậy lớn nhất không vượt quá giới hạn chi phí đã cho, và ngược lại tìm khoảng chi phí nhỏ nhất để phần mềm có độ tin cậy là một giá trị xác định trước.Từ khoá: Độ tin cậy phần mềm, module phát triển trong công ty, module tích hợp, module mua, phân phối chi phí.In this paper, two mathematical solutions to the cost allocation of software reliability are proposed, including application of binary integer programming to find the greatest reliability of the purchased modules, and use of nonlinear programming to find the greatest reliability of the module development in the company. This study finds the greatest possible reliability of the software without exceeding the given cost limit and the smallest cost so that the software reliability is a predetermined value. Keywords: Software reliability, in-house developed module, integation module, purchased module, cost allocation.