<?xml version="1.0" encoding="UTF-8"?>

<!--XBRL Document Created with the Workiva Platform-->
<!--Copyright 2026 Workiva-->
<!--r:019e9870-deda-7d60-b43d-f5610824a86b,g:d08e9b69-5222-4897-964c-ab4f5ed499ba-->
<link:linkbase xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd">
  <link:arcroleRef arcroleURI="https://xbrl.org/2023/arcrole/summation-item" xlink:type="simple" xlink:href="https://www.xbrl.org/2023/calculation-1.1.xsd#summation-item"/>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ConsolidatedBalanceSheets"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedBalanceSheets" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e9870-e050-75d4-8ea3-0284d78c6115" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesAndStockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e9870-e050-7f4f-8990-1617c99fdba5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e9870-e050-75d4-8ea3-0284d78c6115" xlink:to="loc_us-gaap_Liabilities_019e9870-e050-7f4f-8990-1617c99fdba5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e050-784e-ba4b-5881015a120d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesAndStockholdersEquity_019e9870-e050-75d4-8ea3-0284d78c6115" xlink:to="loc_us-gaap_StockholdersEquity_019e9870-e050-784e-ba4b-5881015a120d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_StockholdersEquity_019e9870-e050-7d86-bbfb-94b24ea82816" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_StockholdersEquity"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CommonStockValue_019e9870-e050-7a8f-8148-5f121c93fbbe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CommonStockValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e9870-e050-7d86-bbfb-94b24ea82816" xlink:to="loc_us-gaap_CommonStockValue_019e9870-e050-7a8f-8148-5f121c93fbbe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019e9870-e050-7a7c-8d15-0b050aecdc5a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AdditionalPaidInCapitalCommonStock"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e9870-e050-7d86-bbfb-94b24ea82816" xlink:to="loc_us-gaap_AdditionalPaidInCapitalCommonStock_019e9870-e050-7a7c-8d15-0b050aecdc5a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e9870-e050-7034-8b0c-717a5a44e557" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RetainedEarningsAccumulatedDeficit"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e9870-e050-7d86-bbfb-94b24ea82816" xlink:to="loc_us-gaap_RetainedEarningsAccumulatedDeficit_019e9870-e050-7034-8b0c-717a5a44e557" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e9870-e050-7f8c-9218-e6aef8fb9363" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_StockholdersEquity_019e9870-e050-7d86-bbfb-94b24ea82816" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_019e9870-e050-7f8c-9218-e6aef8fb9363" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Assets"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PropertyPlantAndEquipmentNet_019e9870-e050-7c60-85d3-f6a202228cfe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PropertyPlantAndEquipmentNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_PropertyPlantAndEquipmentNet_019e9870-e050-7c60-85d3-f6a202228cfe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PrepaidReinsurancePremiums_019e9870-e050-795a-b9f6-0439d0f382d4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PrepaidReinsurancePremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_PrepaidReinsurancePremiums_019e9870-e050-795a-b9f6-0439d0f382d4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedInvestmentIncomeReceivable_019e9870-e050-7df4-afea-e5b0976b6464" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_AccruedInvestmentIncomeReceivable_019e9870-e050-7df4-afea-e5b0976b6464" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019e9870-e050-78c7-a714-5db734988c19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_Investments_019e9870-e050-78c7-a714-5db734988c19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e9870-e050-7645-a0bc-2b4892852bd6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IntangibleAssetsNetExcludingGoodwill"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_IntangibleAssetsNetExcludingGoodwill_019e9870-e050-7645-a0bc-2b4892852bd6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses_019e9870-e050-7660-88b5-84a56b371c21" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses"/>
    <link:calculationArc order="6" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_ReinsuranceRecoverablesOnPaidAndUnpaidLosses_019e9870-e050-7660-88b5-84a56b371c21" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e9870-e050-7908-b0d1-334c6258c157" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxAssetsNet"/>
    <link:calculationArc order="7" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_DeferredIncomeTaxAssetsNet_019e9870-e050-7908-b0d1-334c6258c157" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherAssets_019e9870-e050-71fd-8305-af690c6ecf77" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherAssets"/>
    <link:calculationArc order="8" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_OtherAssets_019e9870-e050-71fd-8305-af690c6ecf77" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired_019e9870-e050-7d72-a358-4b68dabb030e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired"/>
    <link:calculationArc order="9" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_DeferredPolicyAcquisitionCostsAndValueOfBusinessAcquired_019e9870-e050-7d72-a358-4b68dabb030e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e9870-e050-77c4-ba46-ba724dc4c5b2" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue"/>
    <link:calculationArc order="10" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_019e9870-e050-77c4-ba46-ba724dc4c5b2" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsReceivableAtCarryingValue_019e9870-e050-783e-b5bf-a7e13addb428" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsReceivableAtCarryingValue"/>
    <link:calculationArc order="11" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_PremiumsReceivableAtCarryingValue_019e9870-e050-783e-b5bf-a7e13addb428" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxReceivable_019fa7a5-c338-735f-b70b-84339b999775" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxReceivable"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Assets_019e9870-e050-7521-932f-2cf0d03ef7ec" xlink:to="loc_us-gaap_IncomeTaxReceivable_019fa7a5-c338-735f-b70b-84339b999775" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Liabilities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019e9870-e050-7efb-aa2b-d2483bb0238e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019e9870-e050-7efb-aa2b-d2483bb0238e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_UnearnedPremiums_019e9870-e050-7e39-aefc-916b35d714d8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_UnearnedPremiums"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:to="loc_us-gaap_UnearnedPremiums_019e9870-e050-7e39-aefc-916b35d714d8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_AccruedExpensesAndOtherLiabilities_019e9870-e050-7546-a70d-664f73862838" xlink:href="ufcs-20260630.xsd#ufcs_AccruedExpensesAndOtherLiabilities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:to="loc_ufcs_AccruedExpensesAndOtherLiabilities_019e9870-e050-7546-a70d-664f73862838" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebt_019e9870-e050-71de-a975-61766e9e1c24" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebt"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:to="loc_us-gaap_LongTermDebt_019e9870-e050-71de-a975-61766e9e1c24" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccruedIncomeTaxes_019fa7a5-fa50-7d64-b329-771c151f253b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccruedIncomeTaxes"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Liabilities_019e9870-e050-708f-a248-eb21d6d6a076" xlink:to="loc_us-gaap_AccruedIncomeTaxes_019fa7a5-fa50-7d64-b329-771c151f253b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Investments_019e9870-e050-71be-9b44-80136a776e71" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Investments"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherLongTermInvestments_019e9870-e050-7e98-9cd4-c7029650dcb5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherLongTermInvestments"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019e9870-e050-71be-9b44-80136a776e71" xlink:to="loc_us-gaap_OtherLongTermInvestments_019e9870-e050-7e98-9cd4-c7029650dcb5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-780d-80a3-50bd3a4d1c82" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019e9870-e050-71be-9b44-80136a776e71" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-780d-80a3-50bd3a4d1c82" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7537-b5ed-7732fe97238f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Investments_019e9870-e050-71be-9b44-80136a776e71" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7537-b5ed-7732fe97238f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofIncomeUnaudited" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ConsolidatedStatementsofIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e9870-e050-7903-af71-a793f031e7e8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-71f5-bd3a-7c77dd79ea33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e9870-e050-7903-af71-a793f031e7e8" xlink:to="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-71f5-bd3a-7c77dd79ea33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019e9870-e050-7a15-987f-60f461dc771c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e9870-e050-7903-af71-a793f031e7e8" xlink:to="loc_us-gaap_Revenues_019e9870-e050-7a15-987f-60f461dc771c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_BenefitsLossesAndExpenses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019e9870-e050-7367-8a6a-7ec9dc87f469" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PolicyholderBenefitsAndClaimsIncurredNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:to="loc_us-gaap_PolicyholderBenefitsAndClaimsIncurredNet_019e9870-e050-7367-8a6a-7ec9dc87f469" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherUnderwritingExpense_019e9870-e050-73ae-a633-c18037493ab5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherUnderwritingExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:to="loc_us-gaap_OtherUnderwritingExpense_019e9870-e050-73ae-a633-c18037493ab5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_OtherNonunderwritingExpenses_019e9870-e050-7036-a519-5db4b56ff794" xlink:href="ufcs-20260630.xsd#ufcs_OtherNonunderwritingExpenses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:to="loc_ufcs_OtherNonunderwritingExpenses_019e9870-e050-7036-a519-5db4b56ff794" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba_019e9870-e050-79e0-b4c1-75de76bdf4c8" xlink:href="ufcs-20260630.xsd#ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:to="loc_ufcs_DeferredPolicyAcquisitionCostAmortizationExpenseAndAmortizationOfValueOfBusinessAcquiredVoba_019e9870-e050-79e0-b4c1-75de76bdf4c8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InterestExpense_019e9870-e050-75bb-9a88-cd27a188d816" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InterestExpense"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_BenefitsLossesAndExpenses_019e9870-e050-7620-bcb1-ce2846e6a50f" xlink:to="loc_us-gaap_InterestExpense_019e9870-e050-75bb-9a88-cd27a188d816" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_Revenues_019e9870-e050-7403-bd8e-ffea39cf14a8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_Revenues"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PremiumsEarnedNet_019e9870-e050-7408-bd58-8435786426a7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PremiumsEarnedNet"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019e9870-e050-7403-bd8e-ffea39cf14a8" xlink:to="loc_us-gaap_PremiumsEarnedNet_019e9870-e050-7408-bd58-8435786426a7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetInvestmentIncome_019e9870-e050-71ce-846d-46a54789650e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetInvestmentIncome"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019e9870-e050-7403-bd8e-ffea39cf14a8" xlink:to="loc_us-gaap_NetInvestmentIncome_019e9870-e050-71ce-846d-46a54789650e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-746a-9b03-19bdeaf300a6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019e9870-e050-7403-bd8e-ffea39cf14a8" xlink:to="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-746a-9b03-19bdeaf300a6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherIncome_019e9870-e050-7b96-b545-d25a124052ed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherIncome"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_Revenues_019e9870-e050-7403-bd8e-ffea39cf14a8" xlink:to="loc_us-gaap_OtherIncome_019e9870-e050-7b96-b545-d25a124052ed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e9870-e050-7df2-aee2-88786dea494d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e9870-e050-7597-a5f9-d2cc3f1cf369" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e9870-e050-7df2-aee2-88786dea494d" xlink:to="loc_us-gaap_IncomeLossFromContinuingOperationsBeforeIncomeTaxesExtraordinaryItemsNoncontrollingInterest_019e9870-e050-7597-a5f9-d2cc3f1cf369" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019e9870-e050-7877-91cb-a8060aee3a1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetIncomeLoss_019e9870-e050-7df2-aee2-88786dea494d" xlink:to="loc_us-gaap_IncomeTaxExpenseBenefit_019e9870-e050-7877-91cb-a8060aee3a1d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ConsolidatedStatementsofComprehensiveIncomeUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofComprehensiveIncomeUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-771a-b91e-2bcaa2422688" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019e9870-e050-7581-9fcc-a6ac299705c9" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-771a-b91e-2bcaa2422688" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodBeforeTax_019e9870-e050-7581-9fcc-a6ac299705c9" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax_019e9870-e050-7e26-9dce-b7d64cf0250c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-771a-b91e-2bcaa2422688" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossPensionAndOtherPostretirementBenefitPlansAdjustmentBeforeReclassificationAdjustmentsAndTax_019e9870-e050-7e26-9dce-b7d64cf0250c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_019e9870-e050-7eee-9d86-41a4505a5090" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-771a-b91e-2bcaa2422688" xlink:to="loc_us-gaap_OtherComprehensiveIncomeForeignCurrencyTransactionAndTranslationGainLossBeforeReclassificationAndTax_019e9870-e050-7eee-9d86-41a4505a5090" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e050-75e7-b40b-902d05c99fbd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-7ea7-85cf-deca38bc2fc4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e050-75e7-b40b-902d05c99fbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsBeforeTax_019e9870-e050-7ea7-85cf-deca38bc2fc4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019e9870-e050-7fe4-b957-65cf4d88264a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e050-75e7-b40b-902d05c99fbd" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossBeforeReclassificationsTax_019e9870-e050-7fe4-b957-65cf4d88264a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e9870-e050-781b-9280-a1b76d3ca1fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ComprehensiveIncomeNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e9870-e050-7717-b69c-6747545043be" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e9870-e050-781b-9280-a1b76d3ca1fe" xlink:to="loc_us-gaap_NetIncomeLoss_019e9870-e050-7717-b69c-6747545043be" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e050-7d40-be10-6e44d8ed95f8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e9870-e050-781b-9280-a1b76d3ca1fe" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e050-7d40-be10-6e44d8ed95f8" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e050-7042-bcd2-71cac76ddfce" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ComprehensiveIncomeNetOfTax_019e9870-e050-781b-9280-a1b76d3ca1fe" xlink:to="loc_us-gaap_OciBeforeReclassificationsNetOfTaxAttributableToParent_019e9870-e050-7042-bcd2-71cac76ddfce" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e050-70d2-87ad-5e1cd8ff710f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019e9870-e050-750f-918a-2504b85a6e9f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e050-70d2-87ad-5e1cd8ff710f" xlink:to="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019e9870-e050-750f-918a-2504b85a6e9f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019e9870-e050-7ef3-8def-bb535966d6e6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAociCurrentPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAociCurrentPeriodNetOfTaxAttributableToParent_019e9870-e050-70d2-87ad-5e1cd8ff710f" xlink:to="loc_us-gaap_ReclassificationFromAociCurrentPeriodTax_019e9870-e050-7ef3-8def-bb535966d6e6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019e9870-e050-7bc1-a18e-8b884e246e95" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_019e9870-e050-7faf-99b1-47fdf87a330c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_ReclassificationFromAccumulatedOtherComprehensiveIncomeCurrentPeriodBeforeTax_019e9870-e050-7bc1-a18e-8b884e246e95" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossReclassificationAdjustmentFromAOCIForSaleOfSecuritiesBeforeTax_019e9870-e050-7faf-99b1-47fdf87a330c" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="simple" xlink:href="ufcs-20260630.xsd#ConsolidatedStatementsofCashFlowsUnaudited"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/ConsolidatedStatementsofCashFlowsUnaudited" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019e9870-e050-79e4-bd7a-2aadef18d77a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_PaymentsToAcquireAvailableForSaleSecuritiesDebt_019e9870-e050-79e4-bd7a-2aadef18d77a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019e9870-e050-719e-a8ca-f1cc32943709" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_ProceedsFromSaleOfAvailableForSaleSecuritiesDebt_019e9870-e050-719e-a8ca-f1cc32943709" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019e9870-e050-74d2-8d1e-45f28130142d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_ProceedsFromMaturitiesPrepaymentsAndCallsOfAvailableForSaleSecurities_019e9870-e050-74d2-8d1e-45f28130142d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsToAcquireOtherInvestments_019e9870-e050-7118-b425-c4466ff2a8db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsToAcquireOtherInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_PaymentsToAcquireOtherInvestments_019e9870-e050-7118-b425-c4466ff2a8db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_019e9870-e050-7048-b72b-595a669c83c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_ProceedsFromSaleAndMaturityOfOtherInvestments_019e9870-e050-7048-b72b-595a669c83c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_019e9870-e050-76ea-b3ea-0351217a4909" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForProceedsFromProductiveAssets"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7600-a3bd-8c67bd6bcd40" xlink:to="loc_us-gaap_PaymentsForProceedsFromProductiveAssets_019e9870-e050-76ea-b3ea-0351217a4909" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e9870-e050-7590-9317-2f9287582ee6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e9870-e050-774d-bbf8-48465009719d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e9870-e050-7590-9317-2f9287582ee6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e9870-e050-774d-bbf8-48465009719d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7ba2-9f23-e705a1b37956" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e9870-e050-7590-9317-2f9287582ee6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_019e9870-e050-7ba2-9f23-e705a1b37956" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-7b97-8509-ee144756b60e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_CashCashEquivalentsRestrictedCashAndRestrictedCashEquivalentsPeriodIncreaseDecreaseIncludingExchangeRateEffect_019e9870-e050-7590-9317-2f9287582ee6" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-7b97-8509-ee144756b60e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e9870-e050-71f3-ad92-6ad93716d85c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e9870-e050-729d-aec6-86ddd91ccc4f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProceedsFromIssuanceOfCommonStock"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e9870-e050-71f3-ad92-6ad93716d85c" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfCommonStock_019e9870-e050-729d-aec6-86ddd91ccc4f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsOfDividends_019e9870-e050-7ceb-b295-8a6f38cb9180" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsOfDividends"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_019e9870-e050-71f3-ad92-6ad93716d85c" xlink:to="loc_us-gaap_PaymentsOfDividends_019e9870-e050-7ceb-b295-8a6f38cb9180" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e9870-e050-7e3a-9cbe-abc248dd0d25" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_AccretionAmortizationOfDiscountsAndPremiumsInvestments_019e9870-e050-7e3a-9cbe-abc248dd0d25" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_019e9870-e050-758c-9249-6eb155c6ed11" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DepreciationDepletionAndAmortization"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_019e9870-e050-758c-9249-6eb155c6ed11" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ShareBasedCompensation_019e9870-e050-72b4-8d1e-6c6fb9b9e5cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ShareBasedCompensation"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_ShareBasedCompensation_019e9870-e050-72b4-8d1e-6c6fb9b9e5cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnInvestments_019e9870-e050-7f3d-b829-977e6eef9698" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnInvestments"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_GainLossOnInvestments_019e9870-e050-7f3d-b829-977e6eef9698" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019e9870-e050-7e87-be6f-21f27607c979" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_DeferredIncomeTaxExpenseBenefit_019e9870-e050-7e87-be6f-21f27607c979" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019e9870-e050-783a-b785-80a2731e6ba7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable"/>
    <link:calculationArc order="6" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedInvestmentIncomeReceivable_019e9870-e050-783a-b785-80a2731e6ba7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019e9870-e050-7bfc-8b2d-a2f0467b870c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPremiumsReceivable"/>
    <link:calculationArc order="7" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInPremiumsReceivable_019e9870-e050-7bfc-8b2d-a2f0467b870c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired_019e9870-e050-7cc1-a21e-d85fa33022da" xlink:href="ufcs-20260630.xsd#ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired"/>
    <link:calculationArc order="8" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_ufcs_IncreaseDecreaseInDeferredPolicyAcquisitionCostAndValueOfBusinessAcquired_019e9870-e050-7cc1-a21e-d85fa33022da" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019e9870-e050-7ddc-838c-fa7094bad443" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInReinsuranceRecoverable"/>
    <link:calculationArc order="9" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInReinsuranceRecoverable_019e9870-e050-7ddc-838c-fa7094bad443" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums_019e9870-e050-76b2-a2ac-927266293440" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums"/>
    <link:calculationArc order="10" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidReinsurancePremiums_019e9870-e050-76b2-a2ac-927266293440" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019e9870-e050-798a-88de-69011a3ca12a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets"/>
    <link:calculationArc order="11" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_019e9870-e050-798a-88de-69011a3ca12a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves_019e9870-e050-7f44-a705-1f9e20f5cdb4" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves"/>
    <link:calculationArc order="12" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInFuturePolicyBenefitReserves_019e9870-e050-7f44-a705-1f9e20f5cdb4" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019e9870-e050-7dac-a3de-1f915c73cf2b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInUnearnedPremiums"/>
    <link:calculationArc order="13" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInUnearnedPremiums_019e9870-e050-7dac-a3de-1f915c73cf2b" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities_019e9870-e050-77a6-8758-176dd3675b3d" xlink:href="ufcs-20260630.xsd#ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities"/>
    <link:calculationArc order="14" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_ufcs_IncreaseDecreaseInAccruedExpensesAndOtherLiabilities_019e9870-e050-77a6-8758-176dd3675b3d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019e9870-e050-74c5-9143-9df9ecc4e6db" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInOtherOperatingLiabilities"/>
    <link:calculationArc order="15" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingLiabilities_019e9870-e050-74c5-9143-9df9ecc4e6db" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_NetIncomeLoss_019e9870-e050-7db7-84aa-06a4b8f27a99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_NetIncomeLoss"/>
    <link:calculationArc order="16" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_NetIncomeLoss_019e9870-e050-7db7-84aa-06a4b8f27a99" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_019fc780-5a64-7d78-b842-19961cf832f0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncreaseDecreaseInIncomeTaxes"/>
    <link:calculationArc order="17" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_019e9870-e050-740f-8136-96e3bbb6fd87" xlink:to="loc_us-gaap_IncreaseDecreaseInIncomeTaxes_019fc780-5a64-7d78-b842-19961cf832f0" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFairValueofInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-77e0-a1c0-639327bde9b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e9870-e050-7093-af9b-0cccf7ef6470" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-77e0-a1c0-639327bde9b1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedLossBeforeTax_019e9870-e050-7093-af9b-0cccf7ef6470" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e9870-e050-7952-840a-aa23517b0a15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-77e0-a1c0-639327bde9b1" xlink:to="loc_us-gaap_AvailableForSaleDebtSecuritiesAccumulatedGrossUnrealizedGainBeforeTax_019e9870-e050-7952-840a-aa23517b0a15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-704b-bbff-6edd6fa19774" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-77e0-a1c0-639327bde9b1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-704b-bbff-6edd6fa19774" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-76fc-bc21-69cf51dbd2ad" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-77e0-a1c0-639327bde9b1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-76fc-bc21-69cf51dbd2ad" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSMaturitiesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSMaturitiesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e9870-e050-7943-a1af-6b252378eb79" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearFairValue_019e9870-e050-7943-a1af-6b252378eb79" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019e9870-e050-78a5-ba1a-1f6d7a2fc785" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsFairValue_019e9870-e050-78a5-ba1a-1f6d7a2fc785" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019e9870-e050-7a15-b964-5f4f99779d19" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsFairValue_019e9870-e050-7a15-b964-5f4f99779d19" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019e9870-e050-7433-ad55-49f4cb84eb89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsFairValue_019e9870-e050-7433-ad55-49f4cb84eb89" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019e9870-e050-7d70-9120-bb2ddf508ef6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e050-7fb9-a576-93b0eda28b1e" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateFairValue_019e9870-e050-7d70-9120-bb2ddf508ef6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019e9870-e050-7b99-9e3e-258ee41611bd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithinOneYearAmortizedCost_019e9870-e050-7b99-9e3e-258ee41611bd" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019e9870-e050-7f8f-a2cf-f6aa999715b1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterOneThroughFiveYearsAmortizedCost_019e9870-e050-7f8f-a2cf-f6aa999715b1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019e9870-e050-734f-a6ee-71fef691aee3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterFiveThroughTenYearsAmortizedCost_019e9870-e050-734f-a6ee-71fef691aee3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019e9870-e050-7857-973f-85bc11a603c7" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesAfterTenYearsAmortizedCost_019e9870-e050-7857-973f-85bc11a603c7" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019e9870-e050-7b47-8d48-a4694909dd46" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleAmortizedCostExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7814-b232-e31589bc01cb" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesDebtMaturitiesWithoutSingleMaturityDateAmortizedCost_019e9870-e050-7b47-8d48-a4694909dd46" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSUnrealizedGainandLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-71f8-91b3-c23063368d81" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019e9870-e050-725b-9c65-41620fd81d69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-71f8-91b3-c23063368d81" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossAvailableForSaleSecuritiesAdjustmentBeforeTax_019e9870-e050-725b-9c65-41620fd81d69" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_019e9870-e050-7c38-9a6b-a9a6b292ca99" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_019e9870-e050-71f8-91b3-c23063368d81" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodTax_019e9870-e050-7c38-9a6b-a9a6b292ca99" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSFixedMaturitiesUnrealizedLossDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019e9870-e050-76aa-a9aa-7e5b45e916f1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019e9870-e050-723b-ab1c-c53152bc34de" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019e9870-e050-76aa-a9aa-7e5b45e916f1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12Months_019e9870-e050-723b-ab1c-c53152bc34de" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019e9870-e050-7763-b0be-41d0c6a75caa" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPosition_019e9870-e050-76aa-a9aa-7e5b45e916f1" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLonger_019e9870-e050-7763-b0be-41d0c6a75caa" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019e9870-e050-7765-bc47-a71856c4ce69" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019e9870-e050-7e37-9512-c5cd8ad0f880" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019e9870-e050-7765-bc47-a71856c4ce69" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPositionLessThan12MonthsAccumulatedLoss_019e9870-e050-7e37-9512-c5cd8ad0f880" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019e9870-e050-7ca7-ae3d-8e4e67978963" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DebtSecuritiesAvailableForSaleUnrealizedLossPositionAccumulatedLoss_019e9870-e050-7765-bc47-a71856c4ce69" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleContinuousUnrealizedLossPosition12MonthsOrLongerAccumulatedLoss_019e9870-e050-7ca7-ae3d-8e4e67978963" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSCarryingValueofCommercialMortgageLoansandAdditionalInformationDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7947-8c4a-7c94140faa1d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-74ca-9170-5ba050473d78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7947-8c4a-7c94140faa1d" xlink:to="loc_us-gaap_FinancingReceivableAllowanceForCreditLossExcludingAccruedInterest_019e9870-e050-74ca-9170-5ba050473d78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7924-8ab5-d21544c58da1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestAfterAllowanceForCreditLoss_019e9870-e050-7947-8c4a-7c94140faa1d" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7924-8ab5-d21544c58da1" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSAmortizedCostBasisbyYearofOriginationandCreditQualityIndicatorDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019e9870-e050-7592-836a-6c4e52a0167a" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFourOriginatedThreeYearsBeforeCurrentFiscalYear_019e9870-e050-7592-836a-6c4e52a0167a" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019e9870-e050-7880-b4fd-6150a01c90fe" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:to="loc_us-gaap_FinancingReceivableExcludingAccruedInterestYearFiveOriginatedFourYearsBeforeCurrentFiscalYear_019e9870-e050-7880-b4fd-6150a01c90fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_019e9870-e050-743a-b252-01295fb397e0" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSixOriginatedFiveYearsBeforeCurrentFiscalYear_019e9870-e050-743a-b252-01295fb397e0" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_019e9870-e050-7c80-b906-b36e2a18eac5" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestYearSevenOriginatedSixYearsBeforeCurrentFiscalYear_019e9870-e050-7c80-b906-b36e2a18eac5" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_019e9870-e050-7736-9783-10d47ec8f30a" xlink:href="ufcs-20260630.xsd#ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear"/>
    <link:calculationArc order="5" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_FinancingReceivableExcludingAccruedInterestBeforeAllowanceForCreditLoss_019e9870-e050-7d9f-9f73-1bc6a46297a5" xlink:to="loc_ufcs_FinancingReceivableExcludingAccruedInterestOriginatedMoreThanSixYearsBeforeCurrentFiscalYear_019e9870-e050-7736-9783-10d47ec8f30a" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentGainsandLossesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-7c49-ad50-a9f82315c136" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_RealizedInvestmentGainsLosses"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019e9870-e050-74bd-a04c-207b75d1d622" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-7c49-ad50-a9f82315c136" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleRealizedGainLoss_019e9870-e050-74bd-a04c-207b75d1d622" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_GainLossOnSaleOfOtherInvestments_019e9870-e050-7db9-aad0-bacc33659f6c" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_GainLossOnSaleOfOtherInvestments"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-7c49-ad50-a9f82315c136" xlink:to="loc_us-gaap_GainLossOnSaleOfOtherInvestments_019e9870-e050-7db9-aad0-bacc33659f6c" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019e9870-e050-7392-b775-187a0d4b9fed" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_ProvisionForLoanLeaseAndOtherLosses"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-7c49-ad50-a9f82315c136" xlink:to="loc_us-gaap_ProvisionForLoanLeaseAndOtherLosses_019e9870-e050-7392-b775-187a0d4b9fed" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal_019e9870-e050-7ae3-8f29-e076d08e6739" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal"/>
    <link:calculationArc order="4" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_RealizedInvestmentGainsLosses_019e9870-e050-7c49-ad50-a9f82315c136" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterestAllowanceForCreditLossNotToSellBeforeRecoveryCreditLossPreviouslyRecordedExpenseReversal_019e9870-e050-7ae3-8f29-e076d08e6739" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/SUMMARYOFINVESTMENTSNetInvestmentIncomeDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeNet_019e9870-e102-7745-8417-7a0896c6c8f5" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e9870-e102-7dbb-93b7-8fe811356335" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInvestmentExpense"/>
    <link:calculationArc order="1" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeNet_019e9870-e102-7745-8417-7a0896c6c8f5" xlink:to="loc_us-gaap_InvestmentIncomeInvestmentExpense_019e9870-e102-7dbb-93b7-8fe811356335" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7383-b584-581e70cbd670" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeGross"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_InvestmentIncomeNet_019e9870-e102-7745-8417-7a0896c6c8f5" xlink:to="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7383-b584-581e70cbd670" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7b18-8a36-b886376fb61e" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeGross"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_InvestmentIncomeInterest_019e9870-e102-7659-98c1-08ef4acc946e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_InvestmentIncomeInterest"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7b18-8a36-b886376fb61e" xlink:to="loc_us-gaap_InvestmentIncomeInterest_019e9870-e102-7659-98c1-08ef4acc946e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeOther_019e9870-e102-76da-a3df-1e25b64f37fe" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeOther"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7b18-8a36-b886376fb61e" xlink:to="loc_ufcs_InvestmentIncomeOther_019e9870-e102-76da-a3df-1e25b64f37fe" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_019e9870-e102-787f-a0cd-578fb93a221e" xlink:href="ufcs-20260630.xsd#ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_ufcs_InvestmentIncomeGross_019e9870-e102-7b18-8a36-b886376fb61e" xlink:to="loc_ufcs_InvestmentIncomeGainLossOnOtherLongTermInvestments_019e9870-e102-787f-a0cd-578fb93a221e" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFinancialInstrumentsMeasuredatFairValueDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7570-9245-8865415f00b0" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7999-a67b-16c264ec446f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7570-9245-8865415f00b0" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7999-a67b-16c264ec446f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e103-7f29-b04d-e49affee92c6" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7570-9245-8865415f00b0" xlink:to="loc_us-gaap_DebtSecuritiesAvailableForSaleExcludingAccruedInterest_019e9870-e103-7f29-b04d-e49affee92c6" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashSurrenderValueFairValueDisclosure_019e9870-e103-76c8-a5b2-5dab6d5ee729" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashSurrenderValueFairValueDisclosure"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7570-9245-8865415f00b0" xlink:to="loc_us-gaap_CashSurrenderValueFairValueDisclosure_019e9870-e103-76c8-a5b2-5dab6d5ee729" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/FAIRVALUEOFFINANCIALINSTRUMENTSFairValueofFinancialInstrumentsThatAreNotCarriedatFairValueonaRecurringBasisDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7778-977a-fb0d61766663" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AssetsFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7b14-8126-32ef13a7344d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CashAndCashEquivalentsFairValueDisclosure"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7778-977a-fb0d61766663" xlink:to="loc_us-gaap_CashAndCashEquivalentsFairValueDisclosure_019e9870-e103-7b14-8126-32ef13a7344d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LoansReceivableFairValueDisclosure_019e9870-e103-7429-a7c2-8765000f50cf" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LoansReceivableFairValueDisclosure"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7778-977a-fb0d61766663" xlink:to="loc_us-gaap_LoansReceivableFairValueDisclosure_019e9870-e103-7429-a7c2-8765000f50cf" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_AlternativeInvestment_019e9870-e103-7236-b551-bd3d37427c15" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_AlternativeInvestment"/>
    <link:calculationArc order="3" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_AssetsFairValueDisclosure_019e9870-e103-7778-977a-fb0d61766663" xlink:to="loc_us-gaap_AlternativeInvestment_019e9870-e103-7236-b551-bd3d37427c15" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilitiesFairValueDisclosure_019e9870-e103-70a1-9272-f57f10e42d3e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilitiesFairValueDisclosure"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LongTermDebtFairValue_019e9870-e103-73e4-80ab-b9303158a331" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LongTermDebtFairValue"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilitiesFairValueDisclosure_019e9870-e103-70a1-9272-f57f10e42d3e" xlink:to="loc_us-gaap_LongTermDebtFairValue_019e9870-e103-73e4-80ab-b9303158a331" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/RESERVESFORLOSSESANDLOSSSETTLEMENTEXPENSESChangesinPropertyandCasualtyLossesandLossSettlementExpenseReservesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019e9870-e103-7d60-b823-e51e238ce115" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_PaymentsForLossesAndLossAdjustmentExpense"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_019e9870-e103-7a2d-ac60-f1477901c97d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019e9870-e103-7d60-b823-e51e238ce115" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidCurrentYear1_019e9870-e103-7a2d-ac60-f1477901c97d" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019e9870-e103-7d7c-b580-7c6eeb7af741" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_PaymentsForLossesAndLossAdjustmentExpense_019e9870-e103-7d60-b823-e51e238ce115" xlink:to="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseClaimsPaidPriorYears1_019e9870-e103-7d7c-b580-7c6eeb7af741" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019e9870-e103-7d21-8f98-9c39cab8c91f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_019e9870-e103-74dd-83d0-728d56bff01f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019e9870-e103-7d21-8f98-9c39cab8c91f" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersCurrentYearClaimsAndClaimsAdjustmentExpense_019e9870-e103-74dd-83d0-728d56bff01f" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019e9870-e103-7554-ae50-5677c73c3330" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseIncurredClaims1_019e9870-e103-7d21-8f98-9c39cab8c91f" xlink:to="loc_us-gaap_SupplementalInformationForPropertyCasualtyInsuranceUnderwritersPriorYearClaimsAndClaimsAdjustmentExpense_019e9870-e103-7554-ae50-5677c73c3330" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019e9870-e103-7263-8dad-fac287391f4b" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019e9870-e103-7de1-bdb0-277eb80be25e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019e9870-e103-7263-8dad-fac287391f4b" xlink:to="loc_us-gaap_LiabilityForClaimsAndClaimsAdjustmentExpense_019e9870-e103-7de1-bdb0-277eb80be25e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense_019e9870-e103-70b5-89f1-779e26e3420f" xlink:href="ufcs-20260630.xsd#ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseNet_019e9870-e103-7263-8dad-fac287391f4b" xlink:to="loc_ufcs_LiabilityForUnpaidClaimsAndClaimsAdjustmentExpenseCededLossAndLossSettlementExpense_019e9870-e103-70b5-89f1-779e26e3420f" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/EMPLOYEEBENEFITSDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#EMPLOYEEBENEFITSDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/EMPLOYEEBENEFITSDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019e9870-e103-788b-bdca-247733e27b6f" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanServiceCost_019e9870-e103-7126-8884-bf49c1b677c3" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanServiceCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019e9870-e103-788b-bdca-247733e27b6f" xlink:to="loc_us-gaap_DefinedBenefitPlanServiceCost_019e9870-e103-7126-8884-bf49c1b677c3" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanInterestCost_019e9870-e103-7ab2-a77b-d292b47b50d1" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanInterestCost"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019e9870-e103-788b-bdca-247733e27b6f" xlink:to="loc_us-gaap_DefinedBenefitPlanInterestCost_019e9870-e103-7ab2-a77b-d292b47b50d1" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019e9870-e103-7a86-961b-45af92fa6a09" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019e9870-e103-788b-bdca-247733e27b6f" xlink:to="loc_us-gaap_DefinedBenefitPlanExpectedReturnOnPlanAssets_019e9870-e103-7a86-961b-45af92fa6a09" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_019e9870-e103-778d-be44-c69313e7828d" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit"/>
    <link:calculationArc order="4" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_DefinedBenefitPlanNetPeriodicBenefitCost_019e9870-e103-788b-bdca-247733e27b6f" xlink:to="loc_us-gaap_DefinedBenefitPlanAmortizationOfPriorServiceCostCredit_019e9870-e103-778d-be44-c69313e7828d" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#EARNINGSPERCOMMONSHAREDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/EARNINGSPERCOMMONSHAREDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e9870-e103-7999-80a7-b9c651da9bf8" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e9870-e103-7839-9489-6ee68f46532e" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_WeightedAverageNumberOfSharesOutstandingBasic"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e9870-e103-7999-80a7-b9c651da9bf8" xlink:to="loc_us-gaap_WeightedAverageNumberOfSharesOutstandingBasic_019e9870-e103-7839-9489-6ee68f46532e" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e9870-e103-7e0c-a165-bdc4637a74ca" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_WeightedAverageNumberOfDilutedSharesOutstanding_019e9870-e103-7999-80a7-b9c651da9bf8" xlink:to="loc_us-gaap_IncrementalCommonSharesAttributableToShareBasedPaymentArrangements_019e9870-e103-7e0c-a165-bdc4637a74ca" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSComponentsofOperatingLeasesDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#LEASECOMMITMENTSComponentsofOperatingLeasesDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/LEASECOMMITMENTSComponentsofOperatingLeasesDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_LeaseCost_019e9870-e103-70e6-a4cf-b59c6c709e89" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_LeaseCost"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseCost_019e9870-e103-7b1b-a689-018635848746" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseCost"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e9870-e103-70e6-a4cf-b59c6c709e89" xlink:to="loc_us-gaap_OperatingLeaseCost_019e9870-e103-7b1b-a689-018635848746" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_SubleaseIncome_019e9870-e103-7311-89c5-4275d4182f78" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_SubleaseIncome"/>
    <link:calculationArc order="2" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e9870-e103-70e6-a4cf-b59c6c709e89" xlink:to="loc_us-gaap_SubleaseIncome_019e9870-e103-7311-89c5-4275d4182f78" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_OperatingLeaseLeaseIncome_019e9870-e103-7db3-ae0b-e95e4a3dcbcd" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_OperatingLeaseLeaseIncome"/>
    <link:calculationArc order="3" weight="-1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_LeaseCost_019e9870-e103-70e6-a4cf-b59c6c709e89" xlink:to="loc_us-gaap_OperatingLeaseLeaseIncome_019e9870-e103-7db3-ae0b-e95e4a3dcbcd" xlink:type="arc"/>
  </link:calculationLink>
  <link:roleRef roleURI="http://www.unitedfiregroup.com/role/INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails" xlink:type="simple" xlink:href="ufcs-20260630.xsd#INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails"/>
  <link:calculationLink xlink:role="http://www.unitedfiregroup.com/role/INCOMETAXSummaryofComponentsofIncomeTaxExpenseBenefitDetails" xlink:type="extended">
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_IncomeTaxExpenseBenefit_019e9870-e103-7b4c-a379-80da2cc30700" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_IncomeTaxExpenseBenefit"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019e9870-e103-7724-b7c9-e4baaabeaa33" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_CurrentFederalTaxExpenseBenefit"/>
    <link:calculationArc order="1" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019e9870-e103-7b4c-a379-80da2cc30700" xlink:to="loc_us-gaap_CurrentFederalTaxExpenseBenefit_019e9870-e103-7724-b7c9-e4baaabeaa33" xlink:type="arc"/>
    <link:loc xlink:type="locator" xlink:label="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019e9870-e103-710f-8411-fdc3cbfb6cab" xlink:href="https://xbrl.fasb.org/us-gaap/2026/elts/us-gaap-2026.xsd#us-gaap_DeferredFederalIncomeTaxExpenseBenefit"/>
    <link:calculationArc order="2" weight="1.0" xlink:arcrole="https://xbrl.org/2023/arcrole/summation-item" xlink:from="loc_us-gaap_IncomeTaxExpenseBenefit_019e9870-e103-7b4c-a379-80da2cc30700" xlink:to="loc_us-gaap_DeferredFederalIncomeTaxExpenseBenefit_019e9870-e103-710f-8411-fdc3cbfb6cab" xlink:type="arc"/>
  </link:calculationLink>
</link:linkbase>
